linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jes.Sorensen@redhat.com
To: neilb@suse.de
Cc: linux-raid@vger.kernel.org, dledford@redhat.com, harald@redhat.com
Subject: [PATCH 2/3] systemd .service files for launching mdmon via systemctl
Date: Mon, 21 Jan 2013 14:22:57 +0100	[thread overview]
Message-ID: <1358774578-2183-3-git-send-email-Jes.Sorensen@redhat.com> (raw)
In-Reply-To: <1358774578-2183-1-git-send-email-Jes.Sorensen@redhat.com>

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

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
---
 systemd/mdmon-offroot@.service | 19 +++++++++++++++++++
 systemd/mdmon@.service         | 13 +++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 systemd/mdmon-offroot@.service
 create mode 100644 systemd/mdmon@.service

diff --git a/systemd/mdmon-offroot@.service b/systemd/mdmon-offroot@.service
new file mode 100644
index 0000000..77bb04b
--- /dev/null
+++ b/systemd/mdmon-offroot@.service
@@ -0,0 +1,19 @@
+#  This file is part of mdadm.
+#
+#  mdadm is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU General Public License as published by
+#  the Free Software Foundation; either version 2 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=MD Metadata Monitor on /dev/%I
+DefaultDependencies=no
+Before=initrd-switch-root.target
+ConditionPathExists=/etc/initrd-release
+
+[Service]
+ExecStart=/usr/sbin/mdmon --offroot %I
+StandardInput=null
+StandardOutput=null
+StandardError=null
+KillMode=none
diff --git a/systemd/mdmon@.service b/systemd/mdmon@.service
new file mode 100644
index 0000000..49d04ec
--- /dev/null
+++ b/systemd/mdmon@.service
@@ -0,0 +1,13 @@
+#  This file is part of mdadm.
+#
+#  mdadm is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU General Public License as published by
+#  the Free Software Foundation; either version 2 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=MD Metadata Monitor on /dev/%I
+DefaultDependencies=no
+
+[Service]
+ExecStart=/usr/sbin/mdmon %I
-- 
1.7.11.7


  parent reply	other threads:[~2013-01-21 13:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-21 13:22 [PATCH v2 0/3] support launching mdmon via systemctl Jes.Sorensen
2013-01-21 13:22 ` [PATCH 1/3] Add support for launching mdmon via systemctl instead of fork/exec Jes.Sorensen
2013-01-22  5:46   ` NeilBrown
2013-01-22  7:33     ` Jes Sorensen
2013-01-25 11:13       ` Jes Sorensen
2013-01-25 15:05         ` Jes Sorensen
2013-01-21 13:22 ` Jes.Sorensen [this message]
2013-01-21 13:22 ` [PATCH 3/3] execl() only returns in case of error Jes.Sorensen
2013-01-22  5:48   ` NeilBrown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1358774578-2183-3-git-send-email-Jes.Sorensen@redhat.com \
    --to=jes.sorensen@redhat.com \
    --cc=dledford@redhat.com \
    --cc=harald@redhat.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).