summaryrefslogtreecommitdiff
path: root/scripts/blk_availability_systemd_red_hat.service.in
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2019-04-09 12:10:17 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2019-04-09 12:24:37 +0200
commit0cab341e1d0e8f9089d3c62d3adbec24dfd5e124 (patch)
tree7a3f8cc88cd24137eb287186ea925721feb1112f /scripts/blk_availability_systemd_red_hat.service.in
parent344a9e9afd9f9038f53887e55e721033d1dc3b65 (diff)
downloadlvm2-0cab341e1d0e8f9089d3c62d3adbec24dfd5e124.tar.gz
systemd: add missing Before=shutdown.target to LVM2 services to fix shutdown ordering
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
Diffstat (limited to 'scripts/blk_availability_systemd_red_hat.service.in')
-rw-r--r--scripts/blk_availability_systemd_red_hat.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/blk_availability_systemd_red_hat.service.in b/scripts/blk_availability_systemd_red_hat.service.in
index da332c243..82d3b82d0 100644
--- a/scripts/blk_availability_systemd_red_hat.service.in
+++ b/scripts/blk_availability_systemd_red_hat.service.in
@@ -1,5 +1,6 @@
[Unit]
Description=Availability of block devices
+Before=shutdown.target
After=lvm2-activation.service iscsi-shutdown.service iscsi.service iscsid.service fcoe.service rbdmap.service
DefaultDependencies=no
Conflicts=shutdown.target