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