mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-01-04 03:22:06 +00:00
1bf4973648
- make supervisorctl happy - fix avatar path - refine logging config - add nginx buffer path
53 lines
1.1 KiB
Plaintext
53 lines
1.1 KiB
Plaintext
[supervisord]
|
|
logfile=/data/log/supervisord.log
|
|
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
|
|
|
|
[supervisorctl]
|
|
serverurl=http://127.0.0.1:9005
|
|
|
|
[program:nginx]
|
|
command=nginx -c /app/deploy/nginx/nginx.conf
|
|
directory=/app/
|
|
stdout_logfile=/data/log/nginx.log
|
|
stderr_logfile=/data/log/nginx.log
|
|
autostart=true
|
|
autorestart=true
|
|
startsecs=5
|
|
stopwaitsecs = 5
|
|
killasgroup=true
|
|
|
|
[program:gunicorn]
|
|
command=sh -c "gunicorn oj.wsgi --user nobody -b 127.0.0.1:8080 --reload -w `grep -c ^processor /proc/cpuinfo`"
|
|
directory=/app/
|
|
user=nobody
|
|
stdout_logfile=/data/log/gunicorn.log
|
|
stderr_logfile=/data/log/gunicorn.log
|
|
autostart=true
|
|
autorestart=true
|
|
startsecs=5
|
|
stopwaitsecs = 5
|
|
killasgroup=true
|
|
|
|
[program:celery]
|
|
command=celery -A oj worker -l warning
|
|
directory=/app/
|
|
user=nobody
|
|
stdout_logfile=/data/log/celery.log
|
|
stderr_logfile=/data/log/celery.log
|
|
autostart=true
|
|
autorestart=true
|
|
startsecs=5
|
|
stopwaitsecs = 5
|
|
killasgroup=true
|