- install:
pip install supervisor - configure:
mkdir -p /etc/supervisord/conf.decho_supervisord_conf > /etc/supervisord/supervisord.confecho "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
-
Star
(115)
You must be signed in to star a gist -
Fork
(61)
You must be signed in to fork a gist
-
-
Save mozillazg/6cbdcccbf46fe96a4edd to your computer and use it in GitHub Desktop.
| [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 |
@michielgerritsen I had to change
;[include]to[include]for this to work.
fix mine
thank you
Ty, very useful. Saved me from a headache.
nice, thank you!
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/supervisordand/bin/supervisorctlto your own location insupervisord.service, if your supervisor is not installed in this location. You can usewhich supervisordandwhich supervisorctlto check your own location. systemctl daemon-reloadsystemctl start supervisord
command: echo_supervisord_conf > /etc/supervisord/supervisord.conf should be
echo_supervisord_conf > /etc/supervisor/supervisord.conf.
/etc/supervisord is not in the lookup dir list.
sometime supervisor on my server not working. I checking file /usr/lib/systemd/system/supervisord.service show is empty file. Can someone help me?
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/supervisordand/bin/supervisorctlto your own location insupervisord.service, if your supervisor is not installed in this location. You can usewhich supervisordandwhich supervisorctlto check your own location.systemctl daemon-reloadsystemctl 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!
I had to change
;[include]to[include]for this to work.