1234567891011121314151617181920212223 |
- [Unit]
- Description=Celery workers
- After=network.target
- [Service]
- Type=forking
- User=user
- Group=users
- EnvironmentFile=-/etc/conf.d/celery
- WorkingDirectory=/opt/Myproject/
- ExecStart=${CELERY_BIN} multi start $CELERYD_NODES \
- -A $CELERY_APP --pidfile=${CELERYD_PID_FILE} \
- --logfile=${CELERYD_LOG_FILE} --loglevel="${CELERYD_LOG_LEVEL}" \
- $CELERYD_OPTS
- ExecStop=${CELERY_BIN} multi stopwait $CELERYD_NODES \
- --pidfile=${CELERYD_PID_FILE}
- ExecReload=${CELERY_BIN} multi restart $CELERYD_NODES \
- -A ${CELERY_APP} --pidfile=${CELERYD_PID_FILE} \
- --logfile=${CELERYD_LOG_FILE} --loglevel="${CELERYD_LOG_LEVEL}" \
- $CELERYD_OPTS
- [Install]
- WantedBy=multi-user.target
|