linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] add support for launching mdmon via systemd
@ 2013-01-18  8:43 Jes.Sorensen
  2013-01-18  8:43 ` [PATCH 1/2] Add support for launching mdmon via systemctl instead of fork/exec Jes.Sorensen
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jes.Sorensen @ 2013-01-18  8:43 UTC (permalink / raw)
  To: neilb; +Cc: linux-raid, dledford, harald

From: Jes Sorensen <Jes.Sorensen@redhat.com>

Hi,

It's been an ongoing issue for a while trying to figure out how to
handle launching mdmon from the initrd in Fedora and avoid it getting
killed by systemd due to it ending up in the wrong cgroup (udev).

We tried simply attaching mdmon to the cgroup of systemd but it didn't
really work, and in the end it seems to be more in line with the
systemd mentality to have systemd spawn it. With these patches and a
few pending changes to dracut, I am finally able to boot and reboot
systems with 1 or 2 IMSM arrays.

The patch for systemctl is implemented as a compile time option rather
than a command line option, since I think it is something that the
distro will decide. However we can make it a command line option if
preferred.

I also have matching systemd .service files for this, which I am happy
to contribute, but I am not sure if they are useful to other distros
or not? We haven't had a history of including .service files with
mdadm.

Cheers,
Jes


Jes Sorensen (2):
  Add support for launching mdmon via systemctl instead of fork/exec
  execl() only returns in case of error

 Makefile |  6 ++++++
 mdmon.c  |  4 +++-
 util.c   | 15 ++++++++++++++-
 3 files changed, 23 insertions(+), 2 deletions(-)

-- 
1.7.11.7


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

end of thread, other threads:[~2013-01-18  9:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-18  8:43 [PATCH 0/2] add support for launching mdmon via systemd Jes.Sorensen
2013-01-18  8:43 ` [PATCH 1/2] Add support for launching mdmon via systemctl instead of fork/exec Jes.Sorensen
2013-01-18  8:43 ` [PATCH 2/2] execl() only returns in case of error Jes.Sorensen
2013-01-18  9:02 ` [PATCH 0/2] add support for launching mdmon via systemd NeilBrown
2013-01-18  9:09   ` Jes Sorensen

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).