Skip to content

Instantly share code, notes, and snippets.

@jurka
Created July 1, 2012 06:19
Show Gist options
  • Save jurka/3027104 to your computer and use it in GitHub Desktop.
Save jurka/3027104 to your computer and use it in GitHub Desktop.
Installing supervisor under ubuntu
#run as sudo
apt-get install python-setuptools curl
easy_install supervior
curl https://raw.github.com/gist/176149/88d0d68c4af22a7474ad1d011659ea2d27e35b8d/supervisord.sh > /etc/init.d/supervisord
#to run it
chmod +x /etc/init.d/supervisord
#adding to autostart
update-rc.d supervisord defaults
#creating basic configuration
echo_supervisord_conf > /etc/supervisord.conf
#creating folder for includes
mkdir /etc/supervisor
echo "[include]
files = /etc/supervisor/*.conf" >> /etc/supervisord.conf
#replace in config location of pid file. Example: pidfile=/var/run/supervisord.pid
#Stop and Start work properly
service supervisord stop
service supervisord start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment