Skip to content

Handle term signal gracefully #130

@jonashartwig

Description

@jonashartwig

Is your feature request related to a problem? Please describe.
We use sidekick as a sidecar. Once the "main container" finishes, we want sidecar to also finish . To achieve that we have another sidecar that monitors the main process. Once that is gone, it sends kill -15 to sidekick. However sidekick does not exit with code 0.

Describe the solution you'd like
I would like sidekick to finish gracefully (exit 0) if it receives a term signal.

Describe alternatives you've considered
Wrapped it into a trap, but there is no trap. The other option is to build our own docker image that has more tools.

Metadata

Metadata

Assignees

No one assigned

    Labels

    communityall incoming issuestriageall incoming issues in triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions