使用 superivisord 启动进程

This commit is contained in:
virusdefender
2015-09-17 15:21:08 +08:00
parent 3d630a4efd
commit 0f28c0e2ce
8 changed files with 101 additions and 1 deletions

15
tools/celeryd.conf Normal file
View File

@@ -0,0 +1,15 @@
[program:celery]
command=celery worker -A judge.judger_controller --loglevel=DEBUG
directory=/root/qduoj/
user=root
numprocs=1
stdout_logfile=/root/log/celery_worker.log
stderr_logfile=/root/log/celery_worker.log
autostart=true
autorestart=true
startsecs=5
stopwaitsecs = 6
killasgroup=true