mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
1dd6626696
- properly clean lvm2-pvscan@.service on distclean - use @sbindir@ for sbin path in ExecStop
15 lines
343 B
SYSTEMD
15 lines
343 B
SYSTEMD
[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=@sbindir@/pvscan --cache %i
|