From 82b15b30abd1ed278550bdeb38168462d0b91674 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 15 May 2009 14:24:22 +0000 Subject: modules/freifunk: duplicate olsr watchdog interval --- modules/freifunk/root/usr/sbin/ff_olsr_watchdog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/freifunk/root/usr') diff --git a/modules/freifunk/root/usr/sbin/ff_olsr_watchdog b/modules/freifunk/root/usr/sbin/ff_olsr_watchdog index 2b4fabed16..3e5258d9be 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 -- cgit v1.2.3