Instantly share code, notes, and snippets.

What would you like to do?
Setting up supervisord in Mac OS X


Installing Supervisor on OS X is simple:

sudo pip install supervisor

This assumes you have pip. If you don't:

curl -O
sudo easy_install pip
sudo pip install supervisor
supervisord -c /path/to/supervisord.conf

Seeing all child processes running

supervisorctl -c /path/to/supervisord.conf

I find it helpful to create an alias in my bash profile for those 2 commands above so that I don't have to manually type -c all the time

echo "alias supervisord='supervisord -c /usr/local/share/supervisor/supervisord.conf'" >> ~/.bash_profile
echo "alias supervisorctl='supervisorctl -c /usr/local/share/supervisor/supervisord.conf'" >> ~/.bash_profile
<!-- /Library/LaunchDaemons/com.agendaless.supervisord.plist -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
logfile = /usr/local/var/log/supervisord.log
logfile_maxbytes = 50MB
loglevel = info
pidfile = /tmp/
nodaemon = False
minfds = 1024
minprocs = 200
umask = 022
identifier = supervisor
directory = /usr/local/share/tmp
nocleanup = true
childlogdir = /usr/local/share/tmp
serverurl = unix:///usr/local/share/tmp/supervisor.sock
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
files = /usr/local/share/supervisor/conf.d/*.conf

This comment has been minimized.


fadhlirahim commented Aug 29, 2014

Ensure supervisord and supervisorctl is run with the -c option and /path/to/supervisord.conf file


This comment has been minimized.


fadhlirahim commented Aug 29, 2014

Optional plist file to run supervisord on startup on your machine.


This comment has been minimized.

black-lotus commented Sep 2, 2015

i can't download from this url
any idea ?


This comment has been minimized.

infostreams commented May 4, 2018

Better way (2018): brew install supervisor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment