64 lines
1.9 KiB
Diff
64 lines
1.9 KiB
Diff
scripts/dm_event_systemd_red_hat.service.in | 13 +++++++++++++
|
|
scripts/dm_event_systemd_red_hat.socket | 10 ++++++++++
|
|
scripts/lvm2_monitoring_systemd_red_hat.service.in | 17 +++++++++++++++++
|
|
3 files changed, 40 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/scripts/dm_event_systemd_red_hat.service.in b/scripts/dm_event_systemd_red_hat.service.in
|
|
new file mode 100644
|
|
index 0000000..3e18c69
|
|
--- /dev/null
|
|
+++ b/scripts/dm_event_systemd_red_hat.service.in
|
|
@@ -0,0 +1,13 @@
|
|
+[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@
|
|
+
|
|
+[Install]
|
|
+WantedBy=sysinit.target
|
|
diff --git a/scripts/dm_event_systemd_red_hat.socket b/scripts/dm_event_systemd_red_hat.socket
|
|
new file mode 100644
|
|
index 0000000..45c02dd
|
|
--- /dev/null
|
|
+++ b/scripts/dm_event_systemd_red_hat.socket
|
|
@@ -0,0 +1,10 @@
|
|
+[Unit]
|
|
+Description=Device-mapper event daemon FIFOs
|
|
+DefaultDependencies=no
|
|
+
|
|
+[Socket]
|
|
+ListenFIFO=/var/run/dmeventd-server
|
|
+ListenFIFO=/var/run/dmeventd-client
|
|
+
|
|
+[Install]
|
|
+WantedBy=sockets.target
|
|
diff --git a/scripts/lvm2_monitoring_systemd_red_hat.service.in b/scripts/lvm2_monitoring_systemd_red_hat.service.in
|
|
new file mode 100644
|
|
index 0000000..c284bbb
|
|
--- /dev/null
|
|
+++ b/scripts/lvm2_monitoring_systemd_red_hat.service.in
|
|
@@ -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
|