Skip to content

Instantly share code, notes, and snippets.

@xman1980
Created May 12, 2016 19:21
Show Gist options
  • Save xman1980/45f3f71c0b7b9438e2a00a54d6ad43d0 to your computer and use it in GitHub Desktop.
Save xman1980/45f3f71c0b7b9438e2a00a54d6ad43d0 to your computer and use it in GitHub Desktop.
supervisor+centos7
yum install python-setuptools python-pip
pip install supervisor
mkdir -p /etc/supervisord
echo_supervisord_conf > /etc/supervisor.d/supervisord.conf
forked systemd init script (thx to Jiangge Zhang) in /usr/lib/systemd/system/supervisord.service:
[Unit]
Description=supervisord - Supervisor process control system for UNIX
Documentation=http://supervisord.org
After=network.target
[Service]
Type=forking
ExecStart=/usr/bin/supervisord -c /etc/supervisord/supervisord.conf
ExecReload=/usr/bin/supervisorctl reload
ExecStop=/usr/bin/supervisorctl shutdown
User=nginx
[Install]
WantedBy=multi-user.target
view rawsupervisord.service hosted with ❤ by GitHub
And:
systemctl enable supervisord
systemctl start supervisord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment