summaryrefslogtreecommitdiff
path: root/scripts/lvm2_pvscan_systemd_red_hat@.service.in
blob: 07ea5caca6aa7e0dac756f0a37bcf4f0639a053b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=LVM2 PV scan on device %i
Documentation=man:pvscan(8)
DefaultDependencies=no
BindsTo=dev-block-%i.device
After=lvm2-lvmetad.socket
Before=shutdown.target
Conflicts=shutdown.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=@sbindir@/pvscan --cache --activate ay /dev/block/%i
ExecStop=/usr/sbin/pvscan --cache %i