Skip to content

supervise-daemon doesn't respect stopsig #958

@avdv

Description

@avdv

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions