projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc4b478
)
contrib/package/freifunk-watchdog: reset hysteresis counter if test condition is...
author
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 16 May 2009 17:59:30 +0000
(17:59 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 16 May 2009 17:59:30 +0000
(17:59 +0000)
contrib/package/freifunk-watchdog/src/watchdog.c
patch
|
blob
|
history
diff --git
a/contrib/package/freifunk-watchdog/src/watchdog.c
b/contrib/package/freifunk-watchdog/src/watchdog.c
index b5a573d49e15d1a048a3339a6ad9995364068e4a..a0d4e43b1fba5aa15ae87a511ea2d9d444102ed1 100644
(file)
--- a/
contrib/package/freifunk-watchdog/src/watchdog.c
+++ b/
contrib/package/freifunk-watchdog/src/watchdog.c
@@
-347,10
+347,14
@@
static int do_daemon(void)
/* Check crond */
if( find_process("crond") < 0 )
restart_cron++;
+ else
+ restart_cron = 0;
/* Check SSHd */
if( find_process("dropbear") < 0 )
restart_sshd++;
+ else
+ restart_sshd = 0;
/* Check wireless interfaces */
ifs = load_wifi_uci(ifs, &modtime);