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 ?
|
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 ? | |||
feedback
|
This question came from our site for professional and enthusiast programmers.
|
Actually, I found one that works here http://gist.github.com/176149. To install it:
to run it
and to automatically schedule it, do
however the "stop" argument does not work properly, but it's not such a big deal. | |||
|
feedback
|
|
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
[/etc/rc.d/init.d/supervisord]
| |||
|
feedback
|
|
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 | ||||
feedback
|
|
There is a debian/ubuntu script in official supervisor svn repo: | |||||
feedback
|
|
I added this lines into /etc/init.d/supervisord to fix "stop" argument processing:
and this works great for me. | |||
|
feedback
|
|
This is working for me on Ubuntu 10.04.3 LTS: Add the following to
Then run:
None of the other answers worked for me. | |||
|
feedback
|
|
Supervisor appears to now be in apt repository, so it shouldn't be necessary to hand-craft init files, just:
You may want to first clean out (and backup) your old files prior to installation. | |||
|
feedback
|