Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (online)root@online:/var/www/online# vim /etc/supervisord.conf
- [inet_http_server]
- port = 0.0.0.0:9999
- username = admin
- password = kalas
- [unix_http_server]
- file=/tmp/supervisor.sock
- [supervisord]
- logfile=/tmp/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=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
- minfds = 1024 ;
- minprocs = 200 ;
- user=www-data
- [rpcinterface:supervisor]
- supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
- [supervisorctl]
- serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
- history_file=~/.sc_history ; use readline history if available
- [program:pejl]
- directory = /var/www/example
- command = /var/environment/pejl/bin/gunicorn_django -b localhost:8009 --workers=2
- user = www-data
- autostart = True
- autorestart = True
- redirect_stderr = True
- [program:online]
- directory = /var/www/online
- command = /var/environment/online/bin/gunicorn_django -b localhost:8002 --workers=2
- user = www-data
- autostart = True
- autorestart = True
- redirect_stderr = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement