瀏覽代碼

updated centos init config file

Milen Pavlov 12 年之前
父節點
當前提交
c5d52584b5
共有 1 個文件被更改,包括 16 次插入15 次删除
  1. 16 15
      extra/centos/celeryd.sysconfig

+ 16 - 15
extra/centos/celeryd.sysconfig

@@ -1,21 +1,22 @@
-# Passed into celeryd multi
-#CELERYD="-m celery.bin.celeryd_detach"
+# In CentOS, contents should be placed in the file /etc/sysconfig/celeryd
 
-# Path to the celerd multi
-#CELERYD_MULTI="/usr/bin/celeryd-multi"
+# Name of nodes to start (space-separated)
+CELERYD_NODES="my_application-node_1"
 
-# Sets the verbosity of the celeryd logging.
-#CELERYD_LOG_LEVEL="INFO"
+# Where to chdir at start. This could be the root of a virtualenv.
+CELERYD_CHDIR="/path/to/my_application"
 
-# Define the loader that celeryd should use for loading in configs.
-#CELERY_LOADER=""
+# How to call celeryd-multi
+CELERYD_MULTI="$CELERYD_CHDIR/bin/celeryd-multi"
 
-# User and group information for directories
-#CELERYD_USER="celery"
-#CELERYD_GROUP="celery"
+# Extra arguments
+CELERYD_OPTS="--app=my_application.path.to.worker --time-limit=300 --concurrency=8 --loglevel=DEBUG"
 
-# Default arguments to be passed into celeryd.
-#CELERYD_OPTS=""
+# %n will be replaced with the nodename
+CELERY_CREATE_DIRS=1
+CELERYD_LOG_FILE="/path/to/my_application/log/%n.log"
+CELERYD_PID_FILE="/var/run/celery/%n.pid"
 
-# Change to this directory first before launching celeryd.
-#CELERYD_CHDIR=""
+# Workers should run as an unprivileged user
+CELERYD_USER=celery
+CELERYD_GROUP=celery