From 56f41d6393ef77d91f114a52c5dc679f1747e4eb Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 16 May 2009 18:00:18 +0000 Subject: [PATCH] luci-0.8: merge r4534 --- contrib/package/freifunk-watchdog/src/watchdog.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/package/freifunk-watchdog/src/watchdog.c b/contrib/package/freifunk-watchdog/src/watchdog.c index b5a573d49e..a0d4e43b1f 100644 --- 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); -- 2.30.2