add the --syslog option while executing mdadm --scan command in mdmonitor.service

This commit is contained in:
eulerstorage 2020-01-19 15:32:12 +08:00
parent 876f4004f9
commit 865dfc2588

View File

@ -12,7 +12,7 @@ DefaultDependencies=no
[Service]
Type=forking
PIDFile=/var/run/mdadm/mdadm.pid
Environment= MDADM_MONITOR_ARGS=--scan
Environment= MDADM_MONITOR_ARGS="--scan --syslog"
EnvironmentFile=-/etc/sysconfig/mdadm
ExecStart=/sbin/mdadm --monitor $MDADM_MONITOR_ARGS -f --pid-file=/var/run/mdadm/mdadm.pid