- 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 |
It's helpful. Thank you!
BTW, let me sum it up, If you failed with the message:
Job for supervisord.service failed because the control process exited with error code.
You can try these steps:
- change
;[include]
to[include]
insupervisord.service
- change
/bin/supervisord
and/bin/supervisorctl
to your own location insupervisord.service
, if your supervisor is not installed in this location. You can usewhich supervisord
andwhich supervisorctl
to check your own location.systemctl daemon-reload
systemctl start supervisord
I am facing this issue right now, but I am wondering, do you mean to "change ;[include]
to [include]
in supervisord.service
" or in supervisord.conf
??
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
sometime supervisor on my server not working. I checking file
/usr/lib/systemd/system/supervisord.service
show is empty file. Can someone help me?