lvm2-monitor.service 602 B

12345678910111213141516171819
  1. [Unit]
  2. Description=Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
  3. Documentation=man:dmeventd(8) man:lvcreate(8) man:lvchange(8) man:vgchange(8)
  4. Requires=dm-event.socket
  5. After=dm-event.socket dm-event.service lvm2-activation.service
  6. Before=local-fs-pre.target shutdown.target
  7. DefaultDependencies=no
  8. Conflicts=shutdown.target
  9. ConditionVirtualization=!container
  10. [Service]
  11. Type=oneshot
  12. Environment=LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES=1
  13. ExecStart=/sbin/lvm vgchange --monitor y
  14. ExecStop=/sbin/lvm vgchange --monitor n
  15. RemainAfterExit=yes
  16. [Install]
  17. WantedBy=sysinit.target