luci-0.8: merge r4534
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 16 May 2009 18:00:18 +0000 (18:00 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 16 May 2009 18:00:18 +0000 (18:00 +0000)
contrib/package/freifunk-watchdog/src/watchdog.c

index b5a573d..a0d4e43 100644 (file)
@@ -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);