1
0
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:
Peter Rajnoha 2011-07-28 12:54:28 +00:00
parent 4b20b480b1
commit 5c4c36b135
4 changed files with 43 additions and 0 deletions

View File

@ -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

View 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

View 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

View 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