Skip to content

Instantly share code, notes, and snippets.

@hallkk
Forked from mozillazg/supervisord.service
Created October 30, 2018 10:47
Show Gist options
  • Save hallkk/28ef26fc4834ef2b512a18896a5ff9f3 to your computer and use it in GitHub Desktop.
Save hallkk/28ef26fc4834ef2b512a18896a5ff9f3 to your computer and use it in GitHub Desktop.
install and configure supervisord on centos 7.
[Unit]
Description=supervisord - Supervisor process control system for UNIX
Documentation=http://supervisord.org
After=network.target
[Service]
Type=forking
ExecStart=/bin/supervisord -c /etc/supervisord/supervisord.conf
ExecReload=/bin/supervisorctl reload
ExecStop=/bin/supervisorctl shutdown
User=root
[Install]
WantedBy=multi-user.target
  1. install: pip install supervisor
  2. configure:
    1. mkdir -p /etc/supervisord/conf.d
    2. echo_supervisord_conf > /etc/supervisord/supervisord.conf
    3. echo "files = conf.d/*.conf" >> /etc/supervisord/supervisord.conf
  3. setup as service: wget supervisord.service -O /usr/lib/systemd/system/supervisord.service
  4. start service systemctl start supervisord
  5. view service status: systemctl status supervisord
  6. auto start service on system startup: systemctl enable supervisord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment