mirror of
https://github.com/ceph/ceph
synced 2024-12-29 06:52:35 +00:00
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>
This commit is contained in:
parent
278cd54afb
commit
9f92c971ce
@ -1415,6 +1415,7 @@ Type=simple
|
||||
ExecStartPre=-{container_path} rm ceph-{fsid}-crash
|
||||
ExecStart={cmd}
|
||||
ExecStop=-{container_path} stop ceph-{fsid}-crash
|
||||
KillMode=none
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
StartLimitInterval=10min
|
||||
@ -1458,6 +1459,7 @@ ExecStartPre=-{install_path} -d -m0770 -o {uid} -g {gid} /var/run/ceph/{fsid}
|
||||
ExecStart=/bin/bash {data_dir}/{fsid}/%i/unit.run
|
||||
ExecStop=-{container_path} stop ceph-{fsid}-%i
|
||||
ExecStopPost=-/bin/bash {data_dir}/{fsid}/%i/unit.poststop
|
||||
KillMode=none
|
||||
Restart=on-failure
|
||||
RestartSec=10s
|
||||
TimeoutStartSec=120
|
||||
|
Loading…
Reference in New Issue
Block a user