aboutsummaryrefslogtreecommitdiffstats
path: root/config/varnish3/varnish_sync.xml
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2013-11-13 18:13:37 -0200
committerMarcello Coutinho <marcellocoutinho@gmail.com>2013-11-13 18:13:37 -0200
commit6a9b49aa740337444bdf93570ff35864dcf01c4f (patch)
tree19dcc728bcec22a08d8d8f4f5afc4c93d459000d /config/varnish3/varnish_sync.xml
parentaaec1b25b6ddf069456012b1b42239824f46cbc4 (diff)
downloadpfsense-packages-6a9b49aa740337444bdf93570ff35864dcf01c4f.tar.gz
pfsense-packages-6a9b49aa740337444bdf93570ff35864dcf01c4f.tar.bz2
pfsense-packages-6a9b49aa740337444bdf93570ff35864dcf01c4f.zip
varnish3 - fix service startup on pfsense 2.1
Improve some gui info add sync to configured backup server option
Diffstat (limited to 'config/varnish3/varnish_sync.xml')
-rw-r--r--config/varnish3/varnish_sync.xml33
1 files changed, 27 insertions, 6 deletions
diff --git a/config/varnish3/varnish_sync.xml b/config/varnish3/varnish_sync.xml
index 02434389..fd387fdb 100644
--- a/config/varnish3/varnish_sync.xml
+++ b/config/varnish3/varnish_sync.xml
@@ -9,7 +9,7 @@
varnish_sync.xml
part of pfSense (http://www.pfSense.com)
Copyright (C) 2008 Scott Ullrich <sullrich@gmail.com>
- Copyright (C) 2011 Marcello Coutinho
+ Copyright (C) 2011-2013 Marcello Coutinho
All rights reserved.
*/
/* ========================================================================== */
@@ -82,12 +82,34 @@
<type>listtopic</type>
<fieldname>temp</fieldname>
<name>Enable Varnish configuration sync</name>
- </field>
+ </field>
<field>
<fielddescr>Automatically sync Varnish configuration changes</fielddescr>
<fieldname>synconchanges</fieldname>
- <description>pfSense will automatically sync changes to the hosts defined below.</description>
- <type>checkbox</type>
+ <description>Select a sync method for bind.</description>
+ <type>select</type>
+ <required/>
+ <default_value>auto</default_value>
+ <options>
+ <option><name>Sync to configured system backup server</name><value>auto</value></option>
+ <option><name>Sync to host(s) defined below</name><value>manual</value></option>
+ <option><name>Do not sync this package configuration</name><value>disabled</value></option>
+ </options>
+ </field>
+ <field>
+ <fielddescr>Sync timeout</fielddescr>
+ <fieldname>synctimeout</fieldname>
+ <description>Select sync max wait time</description>
+ <type>select</type>
+ <required/>
+ <default_value>25</default_value>
+ <options>
+ <option><name>30 seconds(Default)</name><value>30</value></option>
+ <option><name>60 seconds</name><value>60</value></option>
+ <option><name>90 seconds</name><value>90</value></option>
+ <option><name>250 seconds</name><value>250</value></option>
+ <option><name>120 seconds</name><value>120</value></option>
+ </options>
</field>
<field>
<fielddescr>Remote Server</fielddescr>
@@ -111,8 +133,7 @@
</rowhelper>
</field>
</fields>
- <custom_php_resync_config_command>
- varnish_sync_on_changes();
+ <custom_php_resync_config_command>
</custom_php_resync_config_command>
<custom_php_command_before_form>
unset($_POST['temp']);