- 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 hldh214/a8e0ae0c1dc83dbe6ac72292eb465edb 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