Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [unix_http_server]
- file=/tmp/supervisor.sock ; (the path to the socket file)
- [supervisord]
- logfile=/var/log/supervisord.log ; (main log file;default $CWD/supervisord.log)
- logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
- logfile_backups=10 ; (num of main logfile rotation backups;default 10)
- loglevel=info ; (log level;default info; others: debug,warn,trace)
- pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
- nodaemon=false ; (start in foreground if true;default false)
- minfds=1024 ; (min. avail startup file descriptors;default 1024)
- minprocs=200 ; (min. avail process descriptors;default 200)
- [rpcinterface:supervisor]
- supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
- [supervisorctl]
- serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
- [program:myproject]
- command=gunicorn_django -c /sites/config/gunicorn.conf.py
- directory=/sites/[retracted]/code/main
- user=www-data
- autostart=true
- autorestart=true
- stdout_logfile=/sites/[retracted]/logs/supervisord.log
- redirect_stderr=true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement