Generated systemd user units do not stop on shutdown before timeout expires #16683
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
systemd user units created with
podman generate systemd --new
do not stop on shutdown before timeout expires.Steps to reproduce the issue:
Create a container to generate the unit from:
Generate the unit and place it in the user mode load path (e.g.
$HOME/.config/systemd/user
):hello-world.service
Start the unit:
Reboot:
Note that systemd is now waiting for
hello-world.service
to stop, which ends up being killed after the stop timeout.Describe the results you received:
Generated units do not stop on shutdown before timeout expires.
Describe the results you expected:
Generated units stop on shutdown before timeout expires.
Additional information you deem important (e.g. issue happens only occasionally):
This doesn't happen when stopping the unit normally (
systemctl --user stop hello-world.service
), it specifically requires that the system is being shut down.I modified the unit to hang on stop instead of running
podman stop
and ran the command myself, getting the following output:Output
The interesting log line seems to be
systemd-logind: Could not activate remote peer: activation request failed: a concurrent deactivation request is already in progress.
.Here's a list of running podman-related processes (
ps -aef | grep podman
) from before running the above command:Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
orbrew info podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Fedora Silverblue 37
The text was updated successfully, but these errors were encountered: