mirror of https://github.com/ceph/ceph-ansible.git
ceph-mon: add ExecStartPre docker stop to systemd
We already do that in the other systemd templates (mgr, mds, etc..)
and would present to add workaround in other orchestration tool.
This change is for containerized deployment only.
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1882724
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 3749d297c7
)
pull/6190/head
parent
bb515496ca
commit
c3f06856c4
|
@ -9,6 +9,7 @@ After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-/etc/environment
|
EnvironmentFile=-/etc/environment
|
||||||
|
ExecStartPre=-/usr/bin/{{ container_binary }} stop ceph-mon-%i
|
||||||
ExecStartPre=-/usr/bin/{{ container_binary }} rm ceph-mon-%i
|
ExecStartPre=-/usr/bin/{{ container_binary }} rm ceph-mon-%i
|
||||||
ExecStartPre=/bin/sh -c '"$(command -v mkdir)" -p /etc/ceph /var/lib/ceph/mon'
|
ExecStartPre=/bin/sh -c '"$(command -v mkdir)" -p /etc/ceph /var/lib/ceph/mon'
|
||||||
ExecStart=/usr/bin/{{ container_binary }} run --rm --name ceph-mon-%i \
|
ExecStart=/usr/bin/{{ container_binary }} run --rm --name ceph-mon-%i \
|
||||||
|
|
Loading…
Reference in New Issue