OnlineJudge/deploy/supervisord.conf

65 lines
1.4 KiB
Plaintext
Raw Normal View History

2017-10-23 02:47:26 +00:00
[supervisord]
logfile=/data/log/supervisord.log
2017-10-23 02:47:26 +00:00
logfile_maxbytes=10MB
logfile_backups=10
loglevel=info
pidfile=/tmp/supervisord.pid
nodaemon=true
childlogdir=/data/log/
[inet_http_server]
port=127.0.0.1:9005
[rpcinterface:supervisor]
supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface
2017-10-23 02:47:26 +00:00
[supervisorctl]
serverurl=http://127.0.0.1:9005
2017-10-23 02:47:26 +00:00
2017-11-24 19:37:40 +00:00
[program:nginx]
2017-11-25 04:30:00 +00:00
command=nginx -c /app/deploy/nginx/nginx.conf
2017-11-24 19:37:40 +00:00
directory=/app/
stdout_logfile=/data/log/nginx.log
stderr_logfile=/data/log/nginx.log
2017-11-24 19:37:40 +00:00
autostart=true
autorestart=true
startsecs=5
stopwaitsecs = 5
killasgroup=true
2017-10-23 02:47:26 +00:00
[program:gunicorn]
2017-11-24 19:37:40 +00:00
command=sh -c "gunicorn oj.wsgi --user nobody -b 127.0.0.1:8080 --reload -w `grep -c ^processor /proc/cpuinfo`"
2017-10-23 02:47:26 +00:00
directory=/app/
2017-11-24 19:37:40 +00:00
user=nobody
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
2018-05-07 23:35:07 +00:00
[program:forum]
command=sh -c "python3 manage.py runserver 8081"
directory=/app/forum/
2018-05-08 02:27:10 +00:00
user=root
2018-05-07 23:35:07 +00:00
stdout_logfile=/data/log/forum.log
stderr_logfile=/data/log/forum.log
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
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