cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] cluster4 dlm: startup notification for systemd
@ 2012-11-03 15:27 Jacek Konieczny
  2012-11-03 15:27 ` [Cluster-devel] [PATCH 1/2] --foreground option added to dlm_controld Jacek Konieczny
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jacek Konieczny @ 2012-11-03 15:27 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Hello,

The two patches:

   [PATCH 1/2] --foreground option added to dlm_controld
   [PATCH 2/2] Startup notification by sd_notify()

add startup notification for the systemd service unit. This way startup
of services depending on DLM can be properly serialized.

Currently dlm_controld forks immediately and the parent exits befor the DLM
subsystem is properly initialized. If clvmd is started next, it will fail
with some cryptic error messages (like 'dlm: no local IP address has been
set'). With the startup notification clvmd startup can be delayed until
dlm_controld reports it is ready.

Similar thing could be implemented with forking and no external dependency, ?
but that is a bit more complicated, as requires communication between the
parent and child process or moving the initialization code before fork().

sd_notify() could also be used to provide status information during the
start-up phase too, but I am not familiar enough with what is happening there
to provide reasonable status messages.

Greets,
	Jacek



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

end of thread, other threads:[~2012-11-05 16:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-03 15:27 [Cluster-devel] cluster4 dlm: startup notification for systemd Jacek Konieczny
2012-11-03 15:27 ` [Cluster-devel] [PATCH 1/2] --foreground option added to dlm_controld Jacek Konieczny
2012-11-03 15:27 ` [Cluster-devel] [PATCH 2/2] Startup notification by sd_notify() Jacek Konieczny
2012-11-05 16:20 ` [Cluster-devel] cluster4 dlm: startup notification for systemd David Teigland

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 NNTP newsgroup(s).