- install:
pip install supervisor
- configure:
mkdir -p /etc/supervisord/conf.d
echo_supervisord_conf > /etc/supervisord/supervisord.conf
echo "files = conf.d/*.conf" >> /etc/supervisord/supervisord.conf
- setup as service:
wget supervisord.service -O /usr/lib/systemd/system/supervisord.service
- start service
systemctl start supervisord
- view service status:
systemctl status supervisord
- auto start service on system startup:
systemctl enable supervisord
-
-
Save mozillazg/6cbdcccbf46fe96a4edd to your computer and use it in GitHub Desktop.
install and configure supervisord on centos 7.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 ofusage.md
and line no. 8 undersupervisord.service
fileLine no 8:
ExecStart=/bin/supervisord -c /etc/supervisord/supervisord.conf
Hope this helps!