- 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
-
Star
(114)
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 |
Yes this line is incorrect
Copy content from file below ;)
any fix about this error?
Thanks for sharing. Guys, the third step is says to download file, but path is missing. Either use full path:
wget https://gist.githubusercontent.com/mozillazg/6cbdcccbf46fe96a4edd/raw/2f5c6f5e88fc43e27b974f8a4c19088fc22b1bd5/supervisord.service -O /usr/lib/systemd/system/supervisord.service
or create the file with above content in folder: /usr/lib/systemd/system/supervisord.service
Thanks a lot! Works fine!
Thanks. One thing -> You may need to run systemctl daemon-reload
before running systemctl start supervisord
Thanks, this post is VERY helpful.
I had to change ;[include]
to [include]
for this to work.
@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/supervisord
and/bin/supervisorctl
to your own location insupervisord.service
, if your supervisor is not installed in this location. You can usewhich supervisord
andwhich supervisorctl
to check your own location. systemctl daemon-reload
systemctl 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/supervisord
and/bin/supervisorctl
to your own location insupervisord.service
, if your supervisor is not installed in this location. You can usewhich supervisord
andwhich supervisorctl
to check your own location.systemctl daemon-reload
systemctl 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!
This line looks to be incorrect