Skip to content

Instantly share code, notes, and snippets.

@adamelliotfields
Created March 1, 2019 03:28
Show Gist options
  • Save adamelliotfields/66ee8144f437d5aa8a298e1f1fe02428 to your computer and use it in GitHub Desktop.
Save adamelliotfields/66ee8144f437d5aa8a298e1f1fe02428 to your computer and use it in GitHub Desktop.
Supervisord Example
[unix_http_server]
file=/tmp/supervisor.sock
;username=user
;password=pass
[inet_http_server]
port=*:9001
;username=user
;password=pass
[supervisord]
logfile=/tmp/supervisord.log
pidfile=/tmp/supervisord.pid
nodaemon=true
user=root
[rpcinterface:supervisor]
supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock
;username=user
;password=pass
[program:nginx]
; set "daemon off" and "master_process on" in nginx.conf
command=/usr/sbin/nginx
killasgroup=true
stdout_logfile=/tmp/nginx-stdout.log
stderr_logfile=/tmp/nginx-stderr.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment