decided to simply return true if it finds a celery pid running

This commit is contained in:
Robbt 2018-09-03 19:00:13 -04:00
parent 329d214b25
commit a3fd7478d6
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ function checkLiquidsoapService() {
function checkCeleryService() {
exec("pgrep -f -u celery airtime-celery", $out, $status);
if (array_key_exists(0, $out) && $status == 0) {
return posix_kill(rtrim($out[0]), 0);
return 1;
}
return $status == 0;
}