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-23 17:08:53 -0500
commit2992c3e98a04081d9149c44d370f209e5bdaf264 (patch)
tree204f9ec1e7cb6a0cacf6e6446d259e0d046d5dec
parent9afdb852d5109daef5cfa92fe326e5cf5d02631d (diff)
downloadlvm2-2992c3e98a04081d9149c44d370f209e5bdaf264.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