Add mdmon systemd service files forgotten in the previous commit

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
This commit is contained in:
Jes Sorensen 2013-01-21 14:51:46 +01:00
parent d467710db7
commit 40b9ebaee0
2 changed files with 32 additions and 0 deletions

19
mdmon-offroot@.service Normal file
View File

@ -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

13
mdmon@.service Normal file
View File

@ -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