public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2 ./WHATS_NEW_DM scripts/dm_event_systemd_r ...
@ 2011-07-28 12:54 prajnoha
  0 siblings, 0 replies; 2+ messages in thread
From: prajnoha @ 2011-07-28 12:54 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	prajnoha@sourceware.org	2011-07-28 12:54:29

Modified files:
	.              : WHATS_NEW_DM 
Added files:
	scripts        : dm_event_systemd_red_hat.service.in 
	                 dm_event_systemd_red_hat.socket 
	                 lvm2_monitoring_systemd_red_hat.service.in 

Log message:
	Add systemd unit files for dmeventd.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW_DM.diff?cvsroot=lvm2&r1=1.482&r2=1.483
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/scripts/dm_event_systemd_red_hat.service.in.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/scripts/dm_event_systemd_red_hat.socket.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/scripts/lvm2_monitoring_systemd_red_hat.service.in.diff?cvsroot=lvm2&r1=NONE&r2=1.1

--- LVM2/WHATS_NEW_DM	2011/07/24 23:59:03	1.482
+++ LVM2/WHATS_NEW_DM	2011/07/28 12:54:28	1.483
@@ -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
/cvs/lvm2/LVM2/scripts/dm_event_systemd_red_hat.service.in,v  -->  standard output
revision 1.1
--- LVM2/scripts/dm_event_systemd_red_hat.service.in
+++ -	2011-07-28 12:54:29.824812000 +0000
@@ -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
/cvs/lvm2/LVM2/scripts/dm_event_systemd_red_hat.socket,v  -->  standard output
revision 1.1
--- LVM2/scripts/dm_event_systemd_red_hat.socket
+++ -	2011-07-28 12:54:30.179738000 +0000
@@ -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
/cvs/lvm2/LVM2/scripts/lvm2_monitoring_systemd_red_hat.service.in,v  -->  standard output
revision 1.1
--- LVM2/scripts/lvm2_monitoring_systemd_red_hat.service.in
+++ -	2011-07-28 12:54:30.524837000 +0000
@@ -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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* LVM2 ./WHATS_NEW_DM scripts/dm_event_systemd_r ...
@ 2011-10-31 12:22 prajnoha
  0 siblings, 0 replies; 2+ messages in thread
From: prajnoha @ 2011-10-31 12:22 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	prajnoha@sourceware.org	2011-10-31 12:22:50

Modified files:
	.              : WHATS_NEW_DM 
	scripts        : dm_event_systemd_red_hat.service.in 

Log message:
	Add "ExecReload" to dm-event.service for systemd to reload dmeventd properly.
	
	Normally, restart simply means "stop and start" for systemd. However, if
	we're installing new versions of the dmeventd binary/libdevmapper, we need
	to restart dmeventd. This fails if we have some devices monitored - we need
	to call "dmeventd -R" instead.
	
	The "ExecReload" did not work quite well in some old versions of systemd,
	systemd assumed that only the configuration is reloaded on "ExecReload",
	not the whole binary itself so it lost track of dmeventd daemon (it lost new
	dmeventd PID). This is fixed and seems to be working fine now with recent
	versions of dmeventd.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW_DM.diff?cvsroot=lvm2&r1=1.519&r2=1.520
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/scripts/dm_event_systemd_red_hat.service.in.diff?cvsroot=lvm2&r1=1.1&r2=1.2

--- LVM2/WHATS_NEW_DM	2011/10/28 20:06:49	1.519
+++ LVM2/WHATS_NEW_DM	2011/10/31 12:22:49	1.520
@@ -1,5 +1,6 @@
 Version 1.02.68 -
 ==================================
+  Add ExecReload to dm-event.service for systemd to reload dmeventd properly.
   Add dm_config_tree_find_str_allow_empty.
   Fix compile-time pool memory locking with DEBUG_MEM.
   Fix valgrind error reports in free of pool chunks with DEBUG_MEM.
--- LVM2/scripts/dm_event_systemd_red_hat.service.in	2011/07/28 12:54:28	1.1
+++ LVM2/scripts/dm_event_systemd_red_hat.service.in	2011/10/31 12:22:50	1.2
@@ -7,6 +7,7 @@
 [Service]
 Type=forking
 ExecStart=@sbindir@/dmeventd
+ExecReload=@sbindir@/dmeventd -R
 PIDFile=@DMEVENTD_PIDFILE@
 OOMScoreAdjust=-1000
 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-31 12:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-28 12:54 LVM2 ./WHATS_NEW_DM scripts/dm_event_systemd_r prajnoha
2011-10-31 12:22 prajnoha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).