mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
0cab341e1d
We already used Conflicts=shutdown target to stop LVM2 services on shutdown. But we still missed the ordering - the shutdown.target should be reached only after all the services are really stopped. Reported here: https://github.com/lvmteam/lvm2/issues/17
18 lines
361 B
SYSTEMD
18 lines
361 B
SYSTEMD
[Unit]
|
|
Description=Clustered LVM mirror log daemon
|
|
Documentation=man:cmirrord(8)
|
|
Requires=corosync.service
|
|
After=corosync.service
|
|
Before=remote-fs-pre.target shutdown.target
|
|
DefaultDependencies=no
|
|
Conflicts=shutdown.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
ExecStart=@USRSBINDIR@/cmirrord
|
|
PIDFile=@CMIRRORD_PIDFILE@
|
|
Restart=on-abort
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|