셀러리 서비스 활동: 비활성(죽음) - Systemd, 왜 시작되지 않습니까?

셀러리 서비스 활동: 비활성(죽음) - Systemd, 왜 시작되지 않습니까?

셀러리를 systemd로 설정했습니다여기에 언급되었습니다.

내 셀러리 서비스

[Unit]
Description=Celery Service
After=network.target

[Service]
Type=forking
User=aj
Group=aj
EnvironmentFile=/etc/conf.d/celery
WorkingDirectory=/root/project
ExecStart=/bin/sh -c '${CELERY_BIN} -A ${CELERY_APP} multi start ${CELERY_NODES} \
  --pidfile=${CELERYD_PID_FILE} \
  --logfile=${CELERYD_LOG_FILE} --loglevel=${CELERYD_LOG_LEVEL} ${CELERYD_OPTS}'
ExecStop=/bin/sh -c '${CELERY_BIN} multi stopwait ${CELERYD_NODES} \
  --pidfile=${CELERYD_PID_FILE}'
ExecReload=/bin/sh -c '${CELERY_BIN} -A ${CELERY_APP} multi restart ${CELERYD_NODES} \
  --pidfile=${CELERYD_PID_FILE} \
  --logfile=${CELERYD_LOG_FILE} --loglevel=${CELERYD_LOG_LEVEL} ${CELERYD_OPTS}'

[Install]
WantedBy=multi-user.target

내 /etc/conf.d/celery

# Name of nodes to start
# here we have a single node
CELERYD_NODES="w1"
# or we could have three nodes:
#CELERYD_NODES="w1 w2 w3"

# Absolute or relative path to the 'celery' command:
#CELERY_BIN="/usr/local/bin/celery"
CELERY_BIN="/root/venv/bin/celery"

# App instance to use
# comment out this line if you don't use an app
CELERY_APP="project"
# or fully qualified:
#CELERY_APP="proj.tasks:app"

# How to call manage.py
CELERYD_MULTI="multi"

# Extra command-line arguments to the worker
CELERYD_OPTS="--time-limit=300 --concurrency=8"

# - %n will be replaced with the first part of the nodename.
# - %I will be replaced with the current child process index
#   and is important when using the prefork pool to avoid race conditions.
CELERYD_PID_FILE="/var/run/celery/%n.pid"
CELERYD_LOG_FILE="/var/log/celery/%n%I.log"
CELERYD_LOG_LEVEL="INFO"

이제 셀러리를 입력하여 시작하면 sudo service celery start다음과 같은 응답이 나타납니다.

● celery.service - Celery Service
   Loaded: loaded (/etc/systemd/system/celery.service; disabled; vendor preset: enabled)
   Active: inactive (dead)

Oct 02 07:19:51 ubuntu-s-1vcpu-1gb-blr1-01 sh[30549]: > Starting nodes...
Oct 02 07:19:54 ubuntu-s-1vcpu-1gb-blr1-01 sh[30564]: celery multi v5.0.0 (singularity)
Oct 02 07:19:54 ubuntu-s-1vcpu-1gb-blr1-01 sh[30564]: > w1@ubuntu-s-1vcpu-1gb01: DOWN
Oct 02 07:19:56 ubuntu-s-1vcpu-1gb-blr1-01 systemd[1]: Started Celery Service.
Oct 02 07:22:06 ubuntu-s-1vcpu-1gb-blr1-01 systemd[1]: Starting Celery Service...
Oct 02 07:22:09 ubuntu-s-1vcpu-1gb-blr1-01 sh[30701]: celery multi v5.0.0 (singularity)
Oct 02 07:22:09 ubuntu-s-1vcpu-1gb-blr1-01 sh[30701]: > Starting nodes...
Oct 02 07:22:14 ubuntu-s-1vcpu-1gb-blr1-01 sh[30715]: celery multi v5.0.0 (singularity)
Oct 02 07:22:14 ubuntu-s-1vcpu-1gb-blr1-01 sh[30715]: > w1@ubuntu-s-1vcpu-1gb01: DOWN
Oct 02 07:22:16 ubuntu-s-1vcpu-1gb-blr1-01 systemd[1]: Started Celery Service.

내가 어디서 잘못됐나요?

추신: 셀러리를 설치하는 데 많은 문제가 있고 복잡하고 문서가 도움이 되지 않기 때문에 셀러리를 사용하지 않는 것을 진지하게 고려하고 있습니다. 사용해야 할 대안이 있나요?

관련 정보