Skip to content

Instantly share code, notes, and snippets.

@mozillazg
Forked from tonyseek/supervisord.service
Last active December 1, 2023 12:59
Show Gist options
  • Save mozillazg/6cbdcccbf46fe96a4edd to your computer and use it in GitHub Desktop.
Save mozillazg/6cbdcccbf46fe96a4edd 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
@imtiyazsizmic
Copy link

Thanks, it's really helpful.

Who is still struggling to make this work?

Please check your folder name is it "supervisor" or "supervisord", notice "d" at last.

You need to check the folder name for all the steps under configure section of usage.md and line no. 8 under supervisord.service file

Line no 8: ExecStart=/bin/supervisord -c /etc/supervisord/supervisord.conf

Hope this helps!

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