diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2021-01-05 15:48:36 +0100 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2021-01-05 16:37:24 +0100 |
commit | 219c69ef03dc86aa92b6134a03f22f416b954d86 (patch) | |
tree | 23b6d593c8bc76a0080c8b017ce045c205662284 /vendor/go.mozilla.org/pkcs7/pkcs7.go | |
parent | 1b9366d650200d0f2029d628fa00d1fd318631aa (diff) | |
download | podman-219c69ef03dc86aa92b6134a03f22f416b954d86.tar.gz podman-219c69ef03dc86aa92b6134a03f22f416b954d86.tar.bz2 podman-219c69ef03dc86aa92b6134a03f22f416b954d86.zip |
generate systemd: do not set `KillMode`
`KillMode=none` has been deprecated in systemd and is now throwing big
warnings when being used. Users have reported the issues upstream
(see #8615) and on the mailing list.
This deprecation was mainly motivated by an abusive use of third-party
vendors causing all kinds of undesired side-effects. For instance, busy
mounts that delay reboot.
After talking to the systemd team, we came up with the following plan:
**Short term**: we can use TimeoutStopSec and remove KillMode=none which
will default to cgroup.
**Long term**: we want to change the type to sdnotify. The plumbing for
Podman is done but we need it for conmon. Once sdnotify is working, we
can get rid of the pidfile handling etc. and let Podman handle it.
Michal Seklatar came up with a nice idea that Podman increase the time
out on demand. That's a much cleaner way than hard-coding the time out
in the unit as suggest in the short-term solution.
This change is executing the short-term plan and sets a minimum timeout
of 60 seconds. User-specified timeouts are added to that.
Fixes: #8615
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'vendor/go.mozilla.org/pkcs7/pkcs7.go')
0 files changed, 0 insertions, 0 deletions