Change to check celery user instead of www-data

This commit is contained in:
Lucas Bickel 2017-04-07 11:46:23 +02:00 committed by GitHub
parent 516f98dfcf
commit 5fcd60415c
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ function checkLiquidsoapService() {
* @return boolean true if airtime-celery is running
*/
function checkCeleryService() {
exec("pgrep -f -u www-data airtime-celery", $out, $status);
exec("pgrep -f -u celery airtime-celery", $out, $status);
if (array_key_exists(0, $out) && $status == 0) {
return posix_kill(rtrim($out[0]), 0);
}