diff options
Diffstat (limited to 'packages/tinydns/tinydns.inc')
-rw-r--r-- | packages/tinydns/tinydns.inc | 5 |
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 () { |