Files
podman/libpod
Matthew Heon 1ab833fb73 Set StoppedByUser earlier in the process of stopping
The StoppedByUser variable indicates that the container was
requested to stop by a user. It's used to prevent restart policy
from firing (so that a restart=always container won't restart if
the user does a `podman stop`. The problem is we were setting it
*very* late in the stop() function. Originally, this was fine,
but after the changes to add the new Stopping state, the logic
that triggered restart policy was firing before StoppedByUser was
even set - so the container would still restart.

Setting it earlier shouldn't hurt anything and guarantees that
checks will see that the container was stopped manually.

Fixes #17069

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2023-01-12 14:45:34 -05:00
..
2022-01-18 12:47:07 +01:00
2017-11-01 11:24:59 -04:00
2022-12-15 13:39:56 +01:00
2022-10-17 09:19:41 +02:00
2022-01-18 12:47:07 +01:00
2022-09-10 07:52:00 -04:00
2022-09-20 15:34:27 -04:00
2022-09-10 07:52:00 -04:00
2022-09-10 07:52:00 -04:00
2022-09-10 07:52:00 -04:00
2022-04-25 13:23:20 +02:00
2022-09-01 13:02:01 -04:00
2022-10-17 09:19:41 +02:00
2023-01-11 14:38:51 -05:00
2022-12-15 13:39:56 +01:00
2022-01-18 12:47:07 +01:00
2022-07-21 14:50:01 -04:00
2022-09-20 15:34:27 -04:00
2022-09-10 07:52:00 -04:00
2022-09-20 15:34:27 -04:00
2022-09-10 07:52:00 -04:00
2022-01-18 12:47:07 +01:00