Created
May 12, 2016 19:21
-
-
Save xman1980/45f3f71c0b7b9438e2a00a54d6ad43d0 to your computer and use it in GitHub Desktop.
supervisor+centos7
This file contains hidden or 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
yum install python-setuptools python-pip | |
pip install supervisor | |
mkdir -p /etc/supervisord | |
echo_supervisord_conf > /etc/supervisor.d/supervisord.conf | |
forked systemd init script (thx to Jiangge Zhang) in /usr/lib/systemd/system/supervisord.service: | |
[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 | |
ExecReload=/usr/bin/supervisorctl reload | |
ExecStop=/usr/bin/supervisorctl shutdown | |
User=nginx | |
[Install] | |
WantedBy=multi-user.target | |
view rawsupervisord.service hosted with ❤ by GitHub | |
And: | |
systemctl enable supervisord | |
systemctl start supervisord |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment