Advertisement
Guest User

Untitled

a guest
Aug 7th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.32 KB | None | 0 0
  1. (online)root@online:/var/www/online# vim /etc/supervisord.conf
  2.  
  3. [inet_http_server]
  4. port = 0.0.0.0:9999
  5. username = admin
  6. password = kalas
  7.  
  8. [unix_http_server]
  9. file=/tmp/supervisor.sock
  10.  
  11.  
  12. [supervisord]
  13. logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
  14. logfile_maxbytes=50MB       ; (max main logfile bytes b4 rotation;default 50MB)
  15. logfile_backups=10          ; (num of main logfile rotation backups;default 10)
  16. loglevel=info               ; (log level;default info; others: debug,warn,trace)
  17. pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
  18. minfds = 1024 ;
  19. minprocs = 200 ;
  20. user=www-data
  21.  
  22. [rpcinterface:supervisor]
  23. supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
  24.  
  25. [supervisorctl]
  26. serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL  for a unix socket
  27. history_file=~/.sc_history  ; use readline history if available
  28.  
  29. [program:pejl]
  30. directory = /var/www/example
  31. command = /var/environment/pejl/bin/gunicorn_django -b localhost:8009 --workers=2
  32. user = www-data
  33. autostart = True
  34. autorestart = True
  35. redirect_stderr = True
  36.  
  37. [program:online]
  38. directory = /var/www/online
  39. command = /var/environment/online/bin/gunicorn_django -b localhost:8002 --workers=2
  40. user = www-data
  41. autostart = True
  42. autorestart = True
  43. redirect_stderr = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement