If you do not install pip, you can try this link: http://sharadchhetri.com/2014/05/30/install-pip-centos-rhel-ubuntu-debian/
- install:
easy_install supervisor
- configure:
mkdir -p /etc/supervisord/conf.d
echo_supervisord_conf > /etc/supervisord/supervisord.conf
echo "files = conf.d/*.conf" >> /etc/supervisord/supervisord.conf
Create a new file /etc/rc.d/init.d/supervisord. Content is below.
Then you can run:
service supervisord start
service supervisord stop
service supervisord status
In the service please remember to add the command
prog_bin="${exec_prefix}/bin/supervisord -c /etc/supervisord/supervisord.conf"
If you have problem with port listening, try below solution:
sudo unlink /tmp/supervisor.sock
sudo unlink /var/run/supervisor.sock
To check status of supervisord
supervisorctl
Hmm, I'm having issues seting it up on OSX, little help? This is what I have when running supervisorctl (alias):
http://localhost:9001 refused connection
supervisor>