- 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 https://gist.githubusercontent.com/mozillazg/6cbdcccbf46fe96a4edd/raw/2f5c6f5e88fc43e27b974f8a4c19088fc22b1bd5/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 sm-tester/cc12884d8af17812c917814080e80ece 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=/usr/bin/supervisord -c /etc/supervisord/supervisord.conf | |
ExecStop=/usr/bin/supervisorctl $OPTIONS shutdown | |
ExecReload=/usr/bin/supervisorctl $OPTIONS reloadUser=root | |
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