summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-03-21 19:13:25 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-06-17 13:21:27 +0200
commita30d3cc7f2a37c9e2b0d79d137fbe9606b032448 (patch)
tree61d0214550ac0426281f468dd2c4550a2a71d4e2 /install
parenta50f37c7e0a0c8a89a2774d2cdcdf08112e2b0d3 (diff)
downloadIshtar-a30d3cc7f2a37c9e2b0d79d137fbe9606b032448.tar.bz2
Ishtar-a30d3cc7f2a37c9e2b0d79d137fbe9606b032448.zip
Celery install: fix runtime directory
Diffstat (limited to 'install')
-rw-r--r--install/celery.service.template1
-rw-r--r--install/celeryd.default.template2
2 files changed, 2 insertions, 1 deletions
diff --git a/install/celery.service.template b/install/celery.service.template
index 1d7278c7c..26b907df6 100644
--- a/install/celery.service.template
+++ b/install/celery.service.template
@@ -7,6 +7,7 @@ Type=forking
User=www-data
Group=www-data
EnvironmentFile=/etc/default/celeryd-#APP_NAME#
+RuntimeDirectory=celery
WorkingDirectory=#INSTALL_PATH#
ExecStart=/bin/sh -c '${CELERY_BIN} multi start ${CELERYD_NODES} \
-c ${CELERY_PROCESS_NUMBER} -A ${CELERY_APP} --pidfile=${CELERYD_PID_FILE} \
diff --git a/install/celeryd.default.template b/install/celeryd.default.template
index 39c97b902..26f66ad06 100644
--- a/install/celeryd.default.template
+++ b/install/celeryd.default.template
@@ -11,7 +11,7 @@ CELERY_APP="#APP_NAME#"
# Log and PID directories
CELERYD_LOG_FILE="/var/log/celery/#APP_NAME#%n%I.log"
-CELERYD_PID_FILE="/var/run/celery/#APP_NAME#%n.pid"
+CELERYD_PID_FILE="/run/celery/#APP_NAME#%n.pid"
# Log level
CELERYD_LOG_LEVEL=INFO