Created
December 11, 2017 17:39
-
-
Save boaf/0f2c088b69869fa9df2be718685f17ad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo su | |
easy_install supervisor | |
echo_supervisord_conf > /etc/supervisord.conf | |
mkdir /etc/supervisord | |
echo '[include] | |
files=/etc/supervisord/*' >> /etc/supervisord.conf | |
# verify it installed correctly with a test | |
echo '[program:filewatcher] | |
command=/bin/cat' > /etc/supervisord/filewatcher | |
exit | |
supervisord -n # run supervisord in foreground mode | |
# at this stage, verify you get a line like the following, then C-c | |
# 2017-12-11 09:15:45,952 INFO success: filewatcher entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) | |
# add init.d script for supervisor | |
sudo curl -o /etc/init.d/supervisor https://raw.githubusercontent.com/Supervisor/initscripts/master/redhat-init-mingalevme | |
sudo sed -i 's/^PREFIX=.*$/PREFIX=\/usr\/local/' /etc/init.d/supervisor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment