-
Notifications
You must be signed in to change notification settings - Fork 273
Description
Hi.
I am running a service which uses SIGINT as a signal to stop gracefully. In systemd they are just setting KillSignal=SIGINT in the service config file.
I am using supervise-daemon but there seems to be no way to specify the signal to use when a supervised service is stopped. I tried to override the stop script with "$supervisor" "$RC_SVCNAME" --signal INT --pidfile $pidfile --retry 5 but that would not stop the supervisor, just the service did stop and was immediately restarted again (at least I think this happened). Alas, since the stop script returned successfully, the service was regarded as stopped, although the service and the supervisor were still running.
Using the default stop script works, but might result in the service getting killed non-gracefully.