aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tinydns/tinydns.inc
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/tinydns/tinydns.inc
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/tinydns/tinydns.inc')
-rw-r--r--packages/tinydns/tinydns.inc5
1 files changed, 4 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 () {