diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 8eeb34682..dae9dfcf7 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -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 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 000000000..32295d3a0 --- /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 000000000..c58055561 --- /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 000000000..47154169f --- /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