Fast installation in CentOS 7 for this "helper" to the queues service in laravel or django framework. EPEL package too old so:
- 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:
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/supervisor.d/supervisord.conf | |
ExecReload=/usr/bin/supervisorctl reload | |
ExecStop=/usr/bin/supervisorctl shutdown | |
User=nginx | |
[Install] | |
WantedBy=multi-user.target |
And:
- systemctl enable supervisord
- systemctl start supervisord
User=nginx is useful to run this process as nginx user. You can change it but the user must be in the system.