Advertisement
Guest User

Untitled

a guest
May 14th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.21 KB | None | 0 0
  1. [unix_http_server]
  2. file=/tmp/supervisor.sock ; the path to the socket file
  3. ;chmod=0700 ; socket file mode (default 0700)
  4. ;chown=nobody:nogroup ; socket file uid:gid owner
  5. ;username=user ; default is no username (open server)
  6. ;password=123 ; default is no password (open server)
  7.  
  8. ;[inet_http_server] ; inet (TCP) server disabled by default
  9. ;port=127.0.0.1:9001 ; ip_address:port specifier, *:port for all iface
  10. ;username=user ; default is no username (open server)
  11. ;password=123 ; default is no password (open server)
  12.  
  13. [supervisord]
  14. logfile=/tmp/supervisord.log ; main log file; default $CWD/supervisord.log
  15. logfile_maxbytes=50MB ; max main logfile bytes b4 rotation; default 50MB
  16. logfile_backups=10 ; # of main logfile backups; 0 means none, default 10
  17. loglevel=info ; log level; default info; others: debug,warn,trace
  18. pidfile=/tmp/supervisord.pid ; supervisord pidfile; default supervisord.pid
  19. nodaemon=false ; start in foreground if true; default false
  20. minfds=1024 ; min. avail startup file descriptors; default 1024
  21. minprocs=200 ; min. avail process descriptors;default 200
  22. ;umask=022 ; process file creation umask; default 022
  23. ;user=supervisord ; setuid to this UNIX account at startup; recommended if root
  24. ;identifier=supervisor ; supervisord identifier, default is 'supervisor'
  25. ;directory=/tmp ; default is not to cd during start
  26. ;nocleanup=true ; don't clean up tempfiles at start; default false
  27. ;childlogdir=/tmp ; 'AUTO' child log dir, default $TEMP
  28. ;environment=KEY="value" ; key value pairs to add to environment
  29. ;strip_ansi=false ; strip ansi escape codes in logs; def. false
  30.  
  31. ; The rpcinterface:supervisor section must remain in the config file for
  32. ; RPC (supervisorctl/web interface) to work. Additional interfaces may be
  33. ; added by defining them in separate [rpcinterface:x] sections.
  34.  
  35. [rpcinterface:supervisor]
  36. supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
  37.  
  38. ; The supervisorctl section configures how supervisorctl will connect to
  39. ; supervisord. configure it match the settings in either the unix_http_server
  40. ; or inet_http_server section.
  41.  
  42. [supervisorctl]
  43. serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
  44. ;serverurl=http://127.0.0.1:9001 ; use an http:// url to specify an inet socket
  45. ;username=chris ; should be same as in [*_http_server] if set
  46. ;password=123 ; should be same as in [*_http_server] if set
  47. ;prompt=mysupervisor ; cmd line prompt (default "supervisor")
  48. ;history_file=~/.sc_history ; use readline history if available
  49.  
  50. ; The sample program section below shows all possible program subsection values.
  51. ; Create one or more 'real' program: sections to be able to control them under
  52. ; supervisor.
  53.  
  54. [program:laravel-worker]
  55. process_name=%(program_name)s_%(process_num)02d
  56. command=sudo php /var/www/html/artisan horizon
  57. autostart=true
  58. autorestart=true
  59. user=webapp
  60. numprocs=5
  61. redirect_stderr=true
  62. stdout_logfile=/var/www/html/storage/horizon.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement