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:
parent
6d5c58fbcb
commit
8278366899
3 changed files with 12 additions and 17 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue