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-03 14:33:27 -0500
commit1fd12230aea1bfed70cafff526148e01296c8d1d (patch)
tree9b11c93e8d03aa10231d99db2da3ddfc1e303f41
parent82ca2cd67c4028e186251ab90d5ec8d8e5dce322 (diff)
downloadlvm2-1fd12230aea1bfed70cafff526148e01296c8d1d.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