summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2015-06-03 14:33:27 -0500
committerDavid Teigland <teigland@redhat.com>2015-06-08 11:50:40 -0500
commit0dde547e669239a7e034caaf519b7bd0236fd93a (patch)
tree7bc173721c16154e11cdf6f1dd326cf838291c73
parentd86cb2179b9b3234aec8a87425f981d6e131c6ba (diff)
downloadlvm2-0dde547e669239a7e034caaf519b7bd0236fd93a.tar.gz
updates to lvm2-lvmlocking unit file
-rw-r--r--scripts/lvm2-lvmlocking.service.in12
1 files changed, 5 insertions, 7 deletions
diff --git a/scripts/lvm2-lvmlocking.service.in b/scripts/lvm2-lvmlocking.service.in
index 5e7144c58..61d3be419 100644
--- a/scripts/lvm2-lvmlocking.service.in
+++ b/scripts/lvm2-lvmlocking.service.in
@@ -11,16 +11,14 @@ Type=oneshot
# start lockspaces and wait for them to finish starting
ExecStart=@sbindir@/vgchange --lock-start --lock-opt autowait
-# auto activate lockd LVs in the newly started VGs
-# ExecStart=@sbindir@/vgchange -aay -S 'lock_type={sanlock,dlm}'
-ExecStart=@sbindir@/vgchange -aay
+# auto activate LVs in the newly started lockd VGs
+ExecStart=@sbindir@/vgchange -aay -S locktype=sanlock || locktype=dlm
-# deactivate lockd LVs
-# ExecStop=@sbindir@/vgchange -an -S 'lock_type={sanlock,dlm}'
-ExecStop=@sbindir@/vgchange -an
+# deactivate LVs in lockd VGs
+ExecStop=@sbindir@/vgchange -an -S locktype=sanlock || locktype=dlm
# stop lockspaces and wait for them to finish stopping
-ExecStop=@sbindir@/lvmlock --stop-lockspaces --wait
+ExecStop=@sbindir@/lvmlockctl --stop-lockspaces --wait
[Install]
WantedBy=multi-user.target