quadlet: add Container-spec StopSignal mapping to podman --stop-signal #23050
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
quadlet
Feature request description
Using a quadlet
.container
unit, I want to set the stop signal for the created container.(I have a third-party container image for a workload that ignores
SIGTERM
, instead only responding toSIGINT
. The container image was additionally not configured with aSTOPSIGNAL
when built. So I need to somehow get the container unit to pass--stop-signal
topodman run
.)Suggest potential solution
Just as systemd service units have
StopSignal
in the[Service]
section, I would expect quadlet container units to supportStopSignal
in the[Container]
section, translating it to podman--stop-signal
.Have you considered any alternatives?
I am currently using
PodmanArgs=--stop-signal=SIGINT
to pass the flag directly. (But it took me sleeping on the problem to even realize I could do that.)The text was updated successfully, but these errors were encountered: