X-Git-Url: http://git.pjr.cc/?p=xmppcentral.git;a=blobdiff_plain;f=lib%2FwatchDog.php;fp=lib%2FwatchDog.php;h=2ea8dd7079053417f0c5c153931c51eb5b60e221;hp=a4889506bdca2bfc25f81deab6417f2e40d26fd2;hb=70fc266c42f1634dac2d6fe2dc29e8060d24ab96;hpb=1aaffed55883b756a7adca132a7bb3871e1dda4d diff --git a/lib/watchDog.php b/lib/watchDog.php index a488950..2ea8dd7 100644 --- a/lib/watchDog.php +++ b/lib/watchDog.php @@ -4,9 +4,9 @@ class watchDog { function go() { // my job is to keep daemons running. + $lhms = new hostManagementServer(); + $lss = new systemServer(); while(true) { - $lhms = new hostManagementServer(); - $lss = new systemServer(); if(!$lhms->isRunning()) { startHMS(); @@ -15,6 +15,8 @@ class watchDog { if(!$lss->isRunning()) { startSS(); } + + sleep(5); } }