Supervisord does not come with an init script or does not indicate how to get it started automatically, ie. after a reboot. I've tried some user-contributed /etc/init.d scripts, but they all fail.
What would be the preferred solution ?
migrated from stackoverflow.com Dec 21 '09 at 23:00
This question came from our site for professional and enthusiast programmers.
locked by Chris S♦ Dec 11 '13 at 16:47
This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.
Actually, I found one that works here http://gist.github.com/176149. To install it:
to run it
and to automatically schedule it, do
Make ensure correct pid in /etc/supervisord.conf which is mapped in /etc/init.d/supervisord
Stop and Start work properly
I created an upstart script for ubuntu 9.10
For example I installed supervisor into a virtual environment, then start and control supervisor from upstart.
create a text file /etc/init/supervisord.conf
the contents are:
It will automatically start supervisor on boot. To manually start after creating the .conf file, use
sudo start supervisord
To manually stop the service, use
sudo stop supervisord
This is what I use on RHEL 5.4 and CentOS 5.5
I'm not sure wether it's depending on some configuration settings in my supervisord.conf. But it seems to work OK.
You need to run the following command after installing it
There is a Debian/Ubuntu script in official Supervisor GitHub repo:
This is working for me on Ubuntu 10.04.3 LTS. It also appears to work in 8.04:
Add the following to
None of the other answers worked for me.
I added this lines into /etc/init.d/supervisord to fix "stop" argument processing:
and this works great for me.