mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
add lvmlocks service to start and stop lockspaces
This commit is contained in:
parent
81ca0cb161
commit
e9b6cdd6e6
18
scripts/lvmlocks.service.in
Normal file
18
scripts/lvmlocks.service.in
Normal file
@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=LVM locking start and stop
|
||||
Documentation=man:lvmlockd(8)
|
||||
After=lvm2-lvmlockd.service sanlock.service dlm.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
|
||||
# start lockspaces and wait for them to finish starting
|
||||
ExecStart=@SBINDIR@/lvm vgchange --lock-start --lock-opt autowait
|
||||
|
||||
# stop lockspaces and wait for them to finish stopping
|
||||
ExecStop=@SBINDIR@/lvmlockctl --stop-lockspaces --wait 1
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Reference in New Issue
Block a user