decided to simply return true if it finds a celery pid running
This commit is contained in:
parent
329d214b25
commit
a3fd7478d6
|
@ -154,7 +154,7 @@ function checkLiquidsoapService() {
|
||||||
function checkCeleryService() {
|
function checkCeleryService() {
|
||||||
exec("pgrep -f -u celery airtime-celery", $out, $status);
|
exec("pgrep -f -u celery airtime-celery", $out, $status);
|
||||||
if (array_key_exists(0, $out) && $status == 0) {
|
if (array_key_exists(0, $out) && $status == 0) {
|
||||||
return posix_kill(rtrim($out[0]), 0);
|
return 1;
|
||||||
}
|
}
|
||||||
return $status == 0;
|
return $status == 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue