OnlineJudge/deploy/supervisor.conf

35 lines
758 B
Plaintext
Raw Normal View History

2017-10-23 02:47:26 +00:00
[supervisord]
logfile=/app/log/supervisord.log
logfile_maxbytes=10MB
logfile_backups=10
loglevel=info
pidfile=/tmp/supervisord.pid
nodaemon=true
2017-10-24 13:14:29 +00:00
childlogdir=/data/log/
2017-10-23 02:47:26 +00:00
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock
[program:gunicorn]
2017-10-24 13:14:29 +00:00
command=sh -c "gunicorn oj.wsgi --user nobody -b 0.0.0.0:8080 --reload -w `grep -c ^processor /proc/cpuinfo`"
2017-10-23 02:47:26 +00:00
directory=/app/
2017-10-24 13:14:29 +00:00
stdout_logfile=/data/log/gunicorn.log
stderr_logfile=/data/log/gunicorn.log
2017-10-23 02:47:26 +00:00
autostart=true
autorestart=true
startsecs=5
stopwaitsecs = 5
killasgroup=true
2017-10-23 12:59:44 +00:00
[program:celery]
2017-10-23 02:47:26 +00:00
command=celery -A oj worker -l warning
directory=/app/
user=nobody
2017-10-24 13:14:29 +00:00
stdout_logfile=/data/log/celery.log
stderr_logfile=/data/log/celery.log
2017-10-23 02:47:26 +00:00
autostart=true
autorestart=true
startsecs=5
stopwaitsecs = 5
2017-10-23 12:59:44 +00:00
killasgroup=true