From e8d031e7ddaa40fe870e8e6a9f2ef97bd297d4c3 Mon Sep 17 00:00:00 2001 From: Tomas Machalek Date: Thu, 23 Jun 2016 15:43:21 +0200 Subject: [PATCH] Add -c parameter to make /bin/sh process the command --- extra/systemd/celery.service | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extra/systemd/celery.service b/extra/systemd/celery.service index 91c9cd17d..00649c5ca 100644 --- a/extra/systemd/celery.service +++ b/extra/systemd/celery.service @@ -8,12 +8,12 @@ User=celery Group=celery EnvironmentFile=-/etc/conf.d/celery WorkingDirectory=/opt/celery -ExecStart=/bin/sh '${CELERY_BIN} multi start $CELERYD_NODES \ +ExecStart=/bin/sh -c '${CELERY_BIN} multi start $CELERYD_NODES \ -A $CELERY_APP --logfile=${CELERYD_LOG_FILE} \ --pidfile=${CELERYD_PID_FILE} $CELERYD_OPTS' -ExecStop=/bin/sh '${CELERY_BIN} multi stopwait $CELERYD_NODES \ +ExecStop=/bin/sh -c '${CELERY_BIN} multi stopwait $CELERYD_NODES \ --pidfile=${CELERYD_PID_FILE}' -ExecReload=/bin/sh '${CELERY_BIN} multi restart $CELERYD_NODES \ +ExecReload=/bin/sh -c '${CELERY_BIN} multi restart $CELERYD_NODES \ -A $CELERY_APP --pidfile=${CELERYD_PID_FILE} --logfile=${CELERYD_LOG_FILE} \ --loglevel="${CELERYD_LOG_LEVEL}" $CELERYD_OPTS'