trying to figure out how i would tell if a service is running from the watchdog...
[xmppcentral.git] / lib / systemServer.php
1 <?php
2
3 class systemServer {
4         function go() {
5                 echo "running system Server\n";
6                 sleep(1000);
7         }
8         
9         function isRunning()
10         {
11                 if(!runningCheck) {
12                         // this code does the check to see if it should be running .. i.e. am i the system server. we only want to do this check once
13                         runningCheck = true;
14                         shouldIRun = false;
15                 }
16                 
17                 // the purpose of this function is two fold, first determines if it should be running and return true if not
18                 // then checks if the ss is running or not and returns true if it is
19                 return true;
20         }
21         
22         private runningCheck = false;
23         private shouldIRun = false;
24 }
25 ?>