File: lvm2_monitoring_systemd_red_hat.service.in

package info (click to toggle)
lvm2 2.03.16-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 14,708 kB
  • sloc: ansic: 174,022; sh: 35,476; python: 5,698; makefile: 2,043; ruby: 66; awk: 20; cpp: 10
file content (18 lines) | stat: -rw-r--r-- 551 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[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=dm-event.socket
After=dm-event.socket dm-event.service
Before=local-fs-pre.target shutdown.target
DefaultDependencies=no
Conflicts=shutdown.target

[Service]
Type=oneshot
Environment=LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES=1
ExecStart=@SBINDIR@/lvm vgchange --monitor y
ExecStop=@SBINDIR@/lvm vgchange --monitor n
RemainAfterExit=yes

[Install]
WantedBy=sysinit.target