3 ms·
Supervisor is responsible for starting the gunicorn process, so it knows the PID when it starts it. Gunicorn controls its own PID file, but supervisor can send
by conesus 15y ago
Supervisor is responsible for starting the gunicorn process, so it knows the PID when it starts it. Gunicorn controls its own PID file, but supervisor can send it process signals.
Here's my sample Supervisord conf file for gunicorn:
[program:gunicorn]
directory=/home/sclay/newsblur
command=gunicorn_django -c config/gunicorn_conf.py
user=sclay
autostart=true
autorestart=true
#redirect_stderr=True
priority=991
stopsignal=HUP
Hope that helps.
- dennyabraham 15y agothanks!