Skip to content

Commit

Permalink
recover loglevel for ExecStart in systemd config (celery#4023)
Browse files Browse the repository at this point in the history
* it was lost in d54eb6d
* "systemctl start celery" doesn't respect CELERYD_LOG_LEVEL as
  "systemctl restart celery" does
* give options in the same order as ExecReload for symmetry
  • Loading branch information
yoichi authored and auvipy committed Jun 2, 2017
1 parent 9f6ea76 commit 8eecc88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extra/systemd/celery.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Group=celery
EnvironmentFile=-/etc/conf.d/celery
WorkingDirectory=/opt/celery
ExecStart=/bin/sh -c '${CELERY_BIN} multi start $CELERYD_NODES \
-A $CELERY_APP --logfile=${CELERYD_LOG_FILE} \
--pidfile=${CELERYD_PID_FILE} $CELERYD_OPTS'
-A $CELERY_APP --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} multi restart $CELERYD_NODES \
Expand Down

0 comments on commit 8eecc88

Please sign in to comment.