- place this config in
/etc/systemd/system/supervisord.service
- kill all supervisord processes
sudo systemctl daemon-reload
sudo systemctl enable supervisord
- start with
sudo systemctl start supervisord
if already not started
Last active
December 6, 2024 09:56
-
-
Save vanushwashere/6f255caf4fa42673153db035222701f2 to your computer and use it in GitHub Desktop.
Systemd unit file for 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=Supervisor process control system for UNIX | |
Documentation=http://supervisord.org | |
After=network.target | |
[Service] | |
#Uncomment the line below if you want to run it as a daemon | |
#Type=forking | |
ExecStart=/usr/bin/supervisord -n -c /etc/supervisord.conf | |
ExecStop=/usr/bin/supervisorctl $OPTIONS shutdown | |
ExecReload=/usr/bin/supervisorctl $OPTIONS reload | |
KillMode=process | |
Restart=on-failure | |
RestartSec=20s | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@gsmethells
I think
if the supervisord start with daemon, it should be
forking
;and if nodaemon, it should be
simple