summaryrefslogtreecommitdiff
path: root/scripts/lvmlocks.service.in
blob: a3d0bd48d3bdb128fc22bf2fb0794d4d2eb9fa7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[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