summaryrefslogtreecommitdiffstats
path: root/systemd/mdmon@.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/mdmon@.service')
-rw-r--r--systemd/mdmon@.service4
1 files changed, 3 insertions, 1 deletions
diff --git a/systemd/mdmon@.service b/systemd/mdmon@.service
index 5520cd03..304b26e8 100644
--- a/systemd/mdmon@.service
+++ b/systemd/mdmon@.service
@@ -14,5 +14,7 @@ Before=initrd-switch-root.target
# mdmon should never complain due to lack of a platform,
# that is mdadm's job if at all.
Environment=IMSM_NO_PLATFORM=1
-ExecStart=/sbin/mdmon --foreground %I
+ExecStart=/sbin/mdmon %I
+Type=forking
+PIDFile=/run/mdadm/%I.pid
KillMode=none