Skip to content

Commit 52a39b9

Browse files
committed
source envvar instead of venv before running
1 parent d158447 commit 52a39b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

provisioning/etc/systemd/system/gitconsensusworker.service

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ User=gitconsensus
88
Group=gitconsensus
99
EnvironmentFile=-/etc/gitconsensus/celery
1010
WorkingDirectory=${CELERY_HOME}
11-
ExecStart=/bin/sh -c 'source ${CELERY_HOME}/venv/bin/activate && ${CELERY_BIN} multi start ${CELERYD_NODES} -A ${CELERY_APP} --pidfile=${CELERYD_PID_FILE} --logfile=${CELERYD_LOG_FILE} --loglevel=${CELERYD_LOG_LEVEL} ${CELERYD_OPTS}'
12-
ExecStop=/bin/sh -c 'source ${CELERY_HOME}/venv/bin/activate && ${CELERY_BIN} multi stopwait ${CELERYD_NODES} --pidfile=${CELERYD_PID_FILE}'
13-
ExecReload=/bin/sh -c 'source ${CELERY_HOME}/venv/bin/activate && ${CELERY_BIN} multi restart ${CELERYD_NODES} -A ${CELERY_APP} --pidfile=${CELERYD_PID_FILE} --logfile=${CELERYD_LOG_FILE} --loglevel=${CELERYD_LOG_LEVEL} ${CELERYD_OPTS}'
11+
ExecStart=/bin/sh -c 'source ${CELERY_HOME}/bin/envvar && ${CELERY_BIN} multi start ${CELERYD_NODES} -A ${CELERY_APP} --pidfile=${CELERYD_PID_FILE} --logfile=${CELERYD_LOG_FILE} --loglevel=${CELERYD_LOG_LEVEL} ${CELERYD_OPTS}'
12+
ExecStop=/bin/sh -c 'source ${CELERY_HOME}/bin/envvar && ${CELERY_BIN} multi stopwait ${CELERYD_NODES} --pidfile=${CELERYD_PID_FILE}'
13+
ExecReload=/bin/sh -c 'source ${CELERY_HOME}/bin/envvar && ${CELERY_BIN} multi restart ${CELERYD_NODES} -A ${CELERY_APP} --pidfile=${CELERYD_PID_FILE} --logfile=${CELERYD_LOG_FILE} --loglevel=${CELERYD_LOG_LEVEL} ${CELERYD_OPTS}'
1414

1515
[Install]
1616
WantedBy=multi-user.target

0 commit comments

Comments
 (0)