ochinchina / supervisord

a go-lang supervisor implementation
MIT License
4.03k stars 571 forks source link

how to stop/kill supervisord self #352

Open alanhe421 opened 1 year ago

alanhe421 commented 1 year ago

kill process

I know the following command can kill process. but I don't know how to stop supervisord self.

supervisord -s supervisord.conf ctl stop all

version

@latest

AtlanCI commented 1 year ago

Officially provided

supervisorctl ctl shutdown 

but The following problem occurs in my environment and does not close. I use systemd to manager the supervisord process.

systemd[1]: supervisor.service: Service hold-off time over, scheduling restart.
systemd[1]: supervisor.service: Scheduled restart job, restart counter is at 1.
systemd[1]: Stopped Supervisord service in golang.
systemd[1]: Started Supervisord service in golang.

You can see that he performed a reboot after I closed.

systemctl

use systemctl command is ok.

systemctl stop supervisord 

So far it looks like no problem