Skip to content

Instantly share code, notes, and snippets.

@bipinu
Last active January 27, 2016 15:01
Show Gist options
  • Save bipinu/ec42ed2946b80e531963 to your computer and use it in GitHub Desktop.
Save bipinu/ec42ed2946b80e531963 to your computer and use it in GitHub Desktop.
Set up Supervisord on Ubuntu through pip
#TODO: Use this init script https://gist.github.com/bipinu/df44686185d263ef1ba2
apt-get update && apt-get upgrade
apt-get install python-pip
pip install supervisor --pre
mkdir /etc/supervisor
echo_supervisord_conf > /etc/supervisor/supervisord.conf
ln -s /etc/supervisor/supervisord.conf /etc/supervisord.conf
mkdir /var/log/supervisor
mkdir /tmp/supervisor-init
cd /tmp/supervisor-init
git clone https://gist.github.com/df44686185d263ef1ba2.git supervisor
cd supervisor
mv supervisord-init-script.sh /etc/init.d/supervisord
# The path "may be" /usr/local/bin/ instead of /usr/bin/
chmod +x /etc/init.d/supervisord
sudo update-rc.d supervisord defaults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment