diff options
author | Michael Tokarev <mjt@tls.msk.ru> | 2014-09-20 08:50:44 +0400 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-09-20 08:50:44 +0400 |
commit | 20d0ba040d767361c1d0c8a825b2a5e8bfdb39a6 (patch) | |
tree | 687a5eda9314ea76da64e234ba269d84345f7efe /systemd/mdmon@.service | |
parent | fef4f4267e21104887eba03b8ddec5e6a3fc9747 (diff) | |
parent | fed12d436b9803ad97d1f11cc8f312ab08c3a659 (diff) |
Merge tag 'mdadm-3.3.2' into debian
Release mdadm-3.3.2
Minor bugfix/stability release.
Diffstat (limited to 'systemd/mdmon@.service')
-rw-r--r-- | systemd/mdmon@.service | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/systemd/mdmon@.service b/systemd/mdmon@.service index 809f5273..85a3a7c5 100644 --- a/systemd/mdmon@.service +++ b/systemd/mdmon@.service @@ -11,8 +11,18 @@ DefaultDependencies=no Before=initrd-switch-root.target [Service] -ExecStart=/sbin/mdmon --foreground %I -StandardInput=null -StandardOutput=null -StandardError=null +# mdmon should never complain due to lack of a platform, +# that is mdadm's job if at all. +Environment=IMSM_NO_PLATFORM=1 +# The mdmon starting in the initramfs (with dracut at least) +# cannot see sysfs after root is mounted, so we will have to +# 'takeover'. As the '--offroot --takeover' don't hurt when +# not necessary, are are useful with root-on-md in dracut, +# have them always present. +ExecStart=BINDIR/mdmon --offroot --takeover %I +Type=forking +# Don't set the PIDFile. It isn't necessary (systemd can work +# it out) and systemd will remove it when transitioning from +# initramfs to rootfs. +#PIDFile=/run/mdadm/%I.pid KillMode=none |