From: Jes Sorensen <Jes.Sorensen@xxxxxxxxxx> Signed-off-by: Jes Sorensen <Jes.Sorensen@xxxxxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html