2c1b57
[Unit]
2c1b57
Description=Software RAID monitoring and management
2c1b57
After=syslog.target
2c1b57
ConditionPathExists=/etc/mdadm.conf
2c1b57
2c1b57
[Service]
2c1b57
Type=forking
2c1b57
PIDFile=/var/run/mdadm/mdadm.pid
2c1b57
Environment= MDADM_MONITOR_ARGS=--scan
2c1b57
EnvironmentFile=-/etc/sysconfig/mdmonitor
2c1b57
ExecStart=/sbin/mdadm --monitor $MDADM_MONITOR_ARGS -f --pid-file=/var/run/mdadm/mdadm.pid
2c1b57
2c1b57
[Install]
2c1b57
WantedBy=multi-user.target