]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: KillMode=none in unit file 33162/head
authorSage Weil <sage@redhat.com>
Sun, 9 Feb 2020 00:21:05 +0000 (18:21 -0600)
committerSage Weil <sage@redhat.com>
Sun, 9 Feb 2020 00:21:05 +0000 (18:21 -0600)
commit9f92c971cec17f1516b6e41c8ab8ed714d6a9296
tree292eaaecf958eea76047a0d40bd79aba2c0fe6f2
parent278cd54afb3ac6a1c5169388adb50bbc4adf3169
cephadm: KillMode=none in unit file

The unit already has a ExecStop command that runs 'podman|docker stop',
so systemd should not *also* try to kill the process or else it may
screw up the container state

From https://www.redhat.com/sysadmin/podman-shareable-systemd-services

"Note: It’s important to set the kill mode to none. Otherwise, systemd
will start competing with Podman to stop and kill the container processes.
which can lead to various undesired side effects and invalid states."

Hopefully-fixes: https://tracker.ceph.com/issues/43883
Signed-off-by: Sage Weil <sage@redhat.com>
src/cephadm/cephadm