|
@@ 340-347 (lines=8) @@
|
| 337 |
|
} |
| 338 |
|
|
| 339 |
|
echo "\n"; |
| 340 |
|
} elseif ($runmode === 'update') { |
| 341 |
|
if ((!Bootstrap::$pid) || (!posix_kill(Bootstrap::$pid, SIGHUP))) { |
| 342 |
|
echo '[UPDATE] ERROR. It seems that phpDaemon is not running' . (Bootstrap::$pid ? ' (PID ' . Bootstrap::$pid . ')' : '') . ".\n"; |
| 343 |
|
} |
| 344 |
|
} elseif ($runmode === 'reopenlog') { |
| 345 |
|
if ((!Bootstrap::$pid) || (!posix_kill(Bootstrap::$pid, SIGUSR1))) { |
| 346 |
|
echo '[REOPEN-LOG] ERROR. It seems that phpDaemon is not running' . (Bootstrap::$pid ? ' (PID ' . Bootstrap::$pid . ')' : '') . ".\n"; |
| 347 |
|
} |
| 348 |
|
} elseif ($runmode === 'reload') { |
| 349 |
|
if ((!Bootstrap::$pid) || (!posix_kill(Bootstrap::$pid, SIGUSR2))) { |
| 350 |
|
echo '[RELOAD] ERROR. It seems that phpDaemon is not running' . (Bootstrap::$pid ? ' (PID ' . Bootstrap::$pid . ')' : '') . ".\n"; |
|
@@ 348-355 (lines=8) @@
|
| 345 |
|
if ((!Bootstrap::$pid) || (!posix_kill(Bootstrap::$pid, SIGUSR1))) { |
| 346 |
|
echo '[REOPEN-LOG] ERROR. It seems that phpDaemon is not running' . (Bootstrap::$pid ? ' (PID ' . Bootstrap::$pid . ')' : '') . ".\n"; |
| 347 |
|
} |
| 348 |
|
} elseif ($runmode === 'reload') { |
| 349 |
|
if ((!Bootstrap::$pid) || (!posix_kill(Bootstrap::$pid, SIGUSR2))) { |
| 350 |
|
echo '[RELOAD] ERROR. It seems that phpDaemon is not running' . (Bootstrap::$pid ? ' (PID ' . Bootstrap::$pid . ')' : '') . ".\n"; |
| 351 |
|
} |
| 352 |
|
} elseif ($runmode === 'restart') { |
| 353 |
|
if ($error === false) { |
| 354 |
|
Bootstrap::stop(2); |
| 355 |
|
Bootstrap::start(); |
| 356 |
|
} |
| 357 |
|
} elseif ($runmode === 'hardrestart') { |
| 358 |
|
Bootstrap::stop(3); |