92 lines
2.7 KiB
Diff
92 lines
2.7 KiB
Diff
WHATS_NEW | 4 ++++
|
|
WHATS_NEW_DM | 4 ++++
|
|
scripts/dm_event_systemd_red_hat.service.in | 14 ++++++++++++++
|
|
scripts/dm_event_systemd_red_hat.socket | 11 +++++++++++
|
|
scripts/lvm2_monitoring_systemd_red_hat.service.in | 17 +++++++++++++++++
|
|
5 files changed, 50 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/WHATS_NEW b/WHATS_NEW
|
|
index ddb04ad..f8bb79e 100644
|
|
--- a/WHATS_NEW
|
|
+++ b/WHATS_NEW
|
|
@@ -1,3 +1,7 @@
|
|
+Version 2.02.87 -
|
|
+===============================
|
|
+ Add systemd unit file to provide lvm2 monitoring.
|
|
+
|
|
Version 2.02.86 - 8th July 2011
|
|
===============================
|
|
Remove unnecessary warning in pvcreate for MD linear devices.
|
|
diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM
|
|
index 5e4aeaf..b6a5360 100644
|
|
--- a/WHATS_NEW_DM
|
|
+++ b/WHATS_NEW_DM
|
|
@@ -1,3 +1,7 @@
|
|
+Version 1.02.66 -
|
|
+===============================
|
|
+ Add systemd unit files for dmeventd.
|
|
+
|
|
Version 1.02.65 - 8th July 2011
|
|
===============================
|
|
Remove dev name prefix from dmsetup line output if exactly one dev requested.
|
|
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..32295d3
|
|
--- /dev/null
|
|
+++ b/scripts/dm_event_systemd_red_hat.service.in
|
|
@@ -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
|
|
diff --git a/scripts/dm_event_systemd_red_hat.socket b/scripts/dm_event_systemd_red_hat.socket
|
|
new file mode 100644
|
|
index 0000000..c580555
|
|
--- /dev/null
|
|
+++ b/scripts/dm_event_systemd_red_hat.socket
|
|
@@ -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
|
|
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..4715416
|
|
--- /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
|