3 ms·
I'm unfamiliar with python and supervisord, but is supervisord able to manage the status of gunicorn and its child processes without explicitly being given the
by dennyabraham 15y ago
I'm unfamiliar with python and supervisord, but is supervisord able to manage the status of gunicorn and its child processes without explicitly being given the gunicorn pid? I've been investigating doing the same in Rails (I'll likely use bluepill) and I'd like to understand how this is done in the python ecosystem.
- conesus 15y agoSupervisor 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!