1 2 3 4 5 6 7 8 9 10 11 12 13
[Unit] Description=Software RAID monitoring and management ConditionPathExists=/etc/mdadm.conf [Service] Type=forking PIDFile=/run/mdadm/mdadm.pid EnvironmentFile=/etc/conf.d/mdadm ExecStart=/sbin/mdadm --monitor --scan -f --pid-file=/run/mdadm/mdadm.pid $MDADM_OPTS [Install] WantedBy=multi-user.target