added some code for actually starting some stuff!
[xmppcentral.git] / sms / sms.php
1 <?php
2
3 // sms will start up and do two things TODO need to remove hardcoding of config.php
4 require_once("../etc/config.php");
5
6
7 // our job is to now go into an watchdog loop
8 // on first execution, this should create the ss and hms objects
9 $pf3 = pcntl_fork();
10 if($pf3 == -1) {
11         echo "Failed to fork\n";
12 } else if($pf3) {
13         // parent
14 } else {
15         // child
16         $wd = new watchDog();
17         $wd->go();
18 }
19
20 ?>