aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-01-28 07:08:31 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-01-28 07:08:31 +0000
commitffb9181e8ecb35a2046c3cfec081572e1e7abc2a (patch)
treea0ac70f46b4587ace01dabb10e996b7bc4f7b50f /packages
parenta04f367cff47a150aeed712692d7236e31927388 (diff)
downloadpfsense-packages-ffb9181e8ecb35a2046c3cfec081572e1e7abc2a.tar.gz
pfsense-packages-ffb9181e8ecb35a2046c3cfec081572e1e7abc2a.tar.bz2
pfsense-packages-ffb9181e8ecb35a2046c3cfec081572e1e7abc2a.zip
Make the refresh interval value tunable
Diffstat (limited to 'packages')
-rw-r--r--packages/tinydns/tinydns.inc5
-rw-r--r--packages/tinydns/tinydns.xml6
2 files changed, 10 insertions, 1 deletions
diff --git a/packages/tinydns/tinydns.inc b/packages/tinydns/tinydns.inc
index 7c863f94..f4c4100b 100644
--- a/packages/tinydns/tinydns.inc
+++ b/packages/tinydns/tinydns.inc
@@ -61,6 +61,9 @@ function tinydns_custom_php_install_command() {
if($config['installedpackages']['tinydns']['config'][0]['maxchild'])
$maxchild = $config['installedpackages']['tinydns']['config'][0]['maxchild'];
+ if($config['installedpackages']['tinydns']['config'][0]['refreshinterval'])
+ $refreshinterval = $config['installedpackages']['tinydns']['config'][0]['refreshinterval'];
+
$svscan = <<<EOD
#!/bin/sh
@@ -88,7 +91,7 @@ svscan_start () {
/usr/bin/env \
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
/usr/sbin/daemon -f /bin/sh -c "\$command \$svscan_servicedir 2>&1 | /usr/local/bin/readproctitle service errors: ................................................................................................................................................................................................................................................................................................................................................................................................................ &" > /dev/null
- minicron 60 /var/run/ping_hosts.pid /etc/ping_hosts.sh
+ minicron {$refreshinterval} /var/run/ping_hosts.pid /etc/ping_hosts.sh
}
svscan_stop_post () {
diff --git a/packages/tinydns/tinydns.xml b/packages/tinydns/tinydns.xml
index 864859b9..b37e127f 100644
--- a/packages/tinydns/tinydns.xml
+++ b/packages/tinydns/tinydns.xml
@@ -82,6 +82,12 @@
<type>input</type>
</field>
<field>
+ <fieldname>refreshinterval</fieldname>
+ <fielddescr>XMLRPC Sync</fielddescr>
+ <description>Controls how often the back monitoring ip adresses are polled</description>
+ <type>input</type>
+ </field>
+ <field>
<fieldname>syncxmlrpc</fieldname>
<fielddescr>XMLRPC Sync</fielddescr>
<description>Sync TinyDNS configuration to backup firewalls</description>