summaryrefslogtreecommitdiff
path: root/systemd/mdmonitor.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/mdmonitor.service')
-rw-r--r--systemd/mdmonitor.service5
1 files changed, 4 insertions, 1 deletions
diff --git a/systemd/mdmonitor.service b/systemd/mdmonitor.service
index 9aff2f56..46f7b880 100644
--- a/systemd/mdmonitor.service
+++ b/systemd/mdmonitor.service
@@ -10,4 +10,7 @@ Description=MD array monitor
DefaultDependencies=no
[Service]
-ExecStart=BINDIR/mdadm --monitor --scan
+Environment= MDADM_MONITOR_ARGS=--scan
+EnvironmentFile=-/run/sysconfig/mdadm
+ExecStartPre=-/usr/lib/mdadm/mdadm_env.sh
+ExecStart=BINDIR/mdadm --monitor $MDADM_MONITOR_ARGS