feat(worker): don't run with a dedicated user

BREAKING: The worker service no longer uses a dedicated `celery` user to run. The old `celery` user can be removed from the system.
This commit is contained in:
jo 2022-05-05 20:19:31 +02:00 committed by Kyle Robbertze
parent 6d5c58fbcb
commit 8278366899
3 changed files with 12 additions and 17 deletions

View file

@ -165,10 +165,7 @@ function checkLiquidsoapService()
*/
function checkCeleryService()
{
exec('pgrep -f -u celery libretime_worker', $out, $status);
if (array_key_exists(0, $out) && $status == 0) {
return 1;
}
exec('systemctl is-active libretime-celery --quiet', $out, $status);
return $status == 0;
}