|
@@ 50-53 (lines=4) @@
|
| 47 |
|
$mysql->connect(Setup::$connectionArray); |
| 48 |
|
if(!Utilities::is_process_running($userProcessId)){ |
| 49 |
|
$userCheck = $mysql->runQueryReturnVar("select username from users where beenChecked = 0"); |
| 50 |
|
if($userCheck!==false){ |
| 51 |
|
$cmd = 'php '.dirname(__FILE__).'/userJob.php -i '.$parentProcessId; |
| 52 |
|
$userProcessId = Utilities::run_in_background($cmd); |
| 53 |
|
} |
| 54 |
|
} |
| 55 |
|
} catch (Exception $e) { |
| 56 |
|
_Logging::appLog($e->getMessage()); |
|
@@ 58-61 (lines=4) @@
|
| 55 |
|
} catch (Exception $e) { |
| 56 |
|
_Logging::appLog($e->getMessage()); |
| 57 |
|
} |
| 58 |
|
if(!Utilities::is_process_running($monitorProcessesId)){ |
| 59 |
|
$cmd = 'php '.dirname(__FILE__).'/blacklistmonitor.php -p monitorProcessWatch -i '.$parentProcessId; |
| 60 |
|
$monitorProcessesId = Utilities::run_in_background($cmd); |
| 61 |
|
} |
| 62 |
|
sleep(15);//15 seconds |
| 63 |
|
} |
| 64 |
|
|