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