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
@eboye I had the same problem.
Commenting this part in the supervisord.conf
;[unix_http_server]
;file=/usr/local/var/run/supervisor.sock ; the path to the socket file
And adding this part to the config. Helped for me.
[inet_http_server] ; inet (TCP) server disabled by default
port=127.0.0.1:9001 ; ip_address:port specifier, *:port for all iface
Thanks to this stackoverflow thread.