X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Ffreifunk%2Froot%2Fusr%2Fsbin%2Fff_olsr_watchdog;h=3e5258d9bea3c00d749e9599a822091765f5f801;hp=2b4fabed16a7807ec4c07b9ce36ed9c4dab5f0f7;hb=82b15b30abd1ed278550bdeb38168462d0b91674;hpb=8de14bbfbf6070899849226d85b8a9bc1dee449e diff --git a/modules/freifunk/root/usr/sbin/ff_olsr_watchdog b/modules/freifunk/root/usr/sbin/ff_olsr_watchdog index 2b4fabed1..3e5258d9b 100755 --- a/modules/freifunk/root/usr/sbin/ff_olsr_watchdog +++ b/modules/freifunk/root/usr/sbin/ff_olsr_watchdog @@ -21,7 +21,7 @@ if posix.access("/var/run/olsrd.pid") then local systime = os.time() local wdgtime = tonumber(io.lines(stamp)()) - if not wdgtime or ( systime - wdgtime ) > intv then + if not wdgtime or ( systime - wdgtime ) > ( intv * 2 ) then os.execute("logger -t 'OLSR watchdog' 'Process died - restarting!'") os.execute("/etc/init.d/olsrd restart") end