projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modules/freifunk: duplicate olsr watchdog interval
[project/luci.git]
/
modules
/
freifunk
/
root
/
usr
/
sbin
/
ff_olsr_watchdog
diff --git
a/modules/freifunk/root/usr/sbin/ff_olsr_watchdog
b/modules/freifunk/root/usr/sbin/ff_olsr_watchdog
index
2b4fabe
..
3e5258d
100755
(executable)
--- 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)())
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
os.execute("logger -t 'OLSR watchdog' 'Process died - restarting!'")
os.execute("/etc/init.d/olsrd restart")
end