2013-01-12 12:15:30 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
|
|
|
|
Documentation=man:dmeventd(8) man:lvcreate(8) man:lvchange(8) man:vgchange(8)
|
|
|
|
Requires=dmeventd.socket
|
2013-11-17 04:58:22 +01:00
|
|
|
After=dmeventd.socket lvmetad.socket
|
2013-01-12 12:15:30 +01:00
|
|
|
DefaultDependencies=no
|
|
|
|
Conflicts=shutdown.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
Environment=LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES=1
|
|
|
|
ExecStart=/usr/sbin/lvm vgchange --monitor y
|
|
|
|
ExecStop=/usr/sbin/lvm vgchange --monitor n
|
|
|
|
RemainAfterExit=yes
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=sysinit.target
|