- install:
pip 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
- setup as service:
wget supervisord.service -O /usr/lib/systemd/system/supervisord.service
- start service
systemctl start supervisord
- view service status:
systemctl status supervisord
- auto start service on system startup:
systemctl enable supervisord
other
- yum install python-setuptools
- easy_install supervisor
- echo_supervisord_conf > supervisord.conf && mv supervisord.conf /etc/supervisord.conf
- mkdir /etc/supervisord.d/
- nano /etc/supervisord.conf 6. Please add text “files = /etc/supervisord.d/*.conf” to configuration file under [include] section 7. Remove comment from [inet_http_server] and port= 8. Change port to *:9001
- /usr/bin/python /usr//bin/supervisord --pidfile /var/run/supervisord.pid -c /etc/supervisord.conf
- touch /etc/supervisord.d/laravel-worker.conf && nano /etc/supervisord.d/laravel-worker.conf
- wget https://gist.githubusercontent.com/mozillazg/6cbdcccbf46fe96a4edd/raw/2f5c6f5e88fc43e27b974f8a4c19088fc22b1bd5/supervisord.service -O /usr/lib/systemd/system/supervisord.service
- systemctl start supervisord
- systemctl status supervisord
- systemctl enable supervisord