mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-28 11:22:15 +03:00
a509776588
The --lock-opt autowait was dropped back in 9ab6bdce01
,
and attempting to specify it has quite an opposite effect:
no waiting is done, which makes the unit almost useless.
19 lines
442 B
SYSTEMD
19 lines
442 B
SYSTEMD
[Unit]
|
|
Description=LVM locking start and stop
|
|
Documentation=man:lvmlockd(8)
|
|
After=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 auto
|
|
|
|
# stop lockspaces and wait for them to finish stopping
|
|
ExecStop=@SBINDIR@/lvmlockctl --stop-lockspaces --wait 1
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|