Configure Supervisor to manage init.d services

Posted by Eduard Luca on Server Fault See other posts from Server Fault or by Eduard Luca
Published on 2014-06-13T14:30:13Z Indexed on 2014/06/13 15:27 UTC
Read the original article Hit count: 329

Filed under:
|

I installed uwsgi and created a bash script, which allows me to start/stop uwsgi in the following manner: service uwsgi [start|stop]. This bash script is located in /etc/init.d/uwsgi.

Now, I want to (politely) ask Supervisor to use that script to manage the uwsgi process. All the tutorials indicate that this is not the way to do it, however I do want to be able to do both service uwsgi stop and supervisorctl stop uwsgi (not sure if I nailed the syntax of the latter) -- even though I am aware that the first one will not in fact stop my service because supervisor will restart it (that's exactly what I need).

Note that I'm using uwsgi in emperor mode if that matters in any way.

© Server Fault or respective owner

Related posts about uwsgi

Related posts about supervisord