mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-26 03:22:12 +03:00
0a726a7e26
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
19 lines
484 B
SYSTEMD
19 lines
484 B
SYSTEMD
[Unit]
|
|
Description=Clustered LVM volumes activation service
|
|
Requires=lvm2-clvmd.service
|
|
Before=shutdown.target
|
|
After=lvm2-clvmd.service lvm2-cmirrord.service
|
|
OnFailure=lvm2-clvmd.service
|
|
DefaultDependencies=no
|
|
Conflicts=shutdown.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
RemainAfterExit=yes
|
|
EnvironmentFile=-@SYSCONFDIR@/sysconfig/clvmd
|
|
ExecStart=@systemdutildir@/lvm2-cluster-activation activate
|
|
ExecStop=@systemdutildir@/lvm2-cluster-activation deactivate
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|