mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Add systemd unit files for dmeventd.
This commit is contained in:
parent
4b20b480b1
commit
5c4c36b135
@ -1,5 +1,6 @@
|
||||
Version 1.02.66 -
|
||||
===============================
|
||||
Add systemd unit files for dmeventd.
|
||||
Fix read-only identical table reload supression.
|
||||
|
||||
Version 1.02.65 - 8th July 2011
|
||||
|
14
scripts/dm_event_systemd_red_hat.service.in
Normal file
14
scripts/dm_event_systemd_red_hat.service.in
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Device-mapper event daemon
|
||||
After=fedora-storage-init.service fedora-storage-init-late.service
|
||||
Before=local-fs.target
|
||||
DefaultDependencies=no
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=@sbindir@/dmeventd
|
||||
PIDFile=@DMEVENTD_PIDFILE@
|
||||
OOMScoreAdjust=-1000
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
11
scripts/dm_event_systemd_red_hat.socket
Normal file
11
scripts/dm_event_systemd_red_hat.socket
Normal file
@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Device-mapper event daemon FIFOs
|
||||
DefaultDependencies=no
|
||||
|
||||
[Socket]
|
||||
ListenFIFO=/var/run/dmeventd-server
|
||||
ListenFIFO=/var/run/dmeventd-client
|
||||
SocketMode=0600
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
17
scripts/lvm2_monitoring_systemd_red_hat.service.in
Normal file
17
scripts/lvm2_monitoring_systemd_red_hat.service.in
Normal file
@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
|
||||
Requires=dm-event.socket
|
||||
After=fedora-storage-init.service fedora-storage-init-late.service
|
||||
Before=local-fs.target
|
||||
DefaultDependencies=no
|
||||
Conflicts=shutdown.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=@sbindir@/lvm vgchange --monitor y
|
||||
ExecStop=@sbindir@/lvm vgchange --monitor n
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
||||
Also=dm-event.socket
|
Loading…
Reference in New Issue
Block a user