]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Add mdmonitor.service systemd unit file.
authorNeilBrown <neilb@suse.de>
Tue, 10 Dec 2013 23:47:54 +0000 (10:47 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 10 Dec 2013 23:47:54 +0000 (10:47 +1100)
commit61c094715836e76b66d7a69adcb6769127b5b77d
treea05d92e7a9ceb552a4c09a6e1cde3f9619ca1c5a
parent8832342d3aad09d3c86af6dc9b137d6fd83af1ae
Add mdmonitor.service systemd unit file.

This systemd unit file runs mdadm in --monitor mode.
It is started by a SYSTEMD_WANTS signal from udev whenever
an md array is started that would benefit from mdadm --monitor.

Commandline arguments can be provided by a script
  /usr/lib/systemd/scripts/mdadm_env.sh
which should write an
  MDADM_MONITOR_ARGS=....
line to /run/sysconfig/mdadm

A script to extra args from SUSE's /etc/sysconfig/mdadm file
is provided.
If no mdadm_env.sh is provided, then args are "--scan" which
requires "mail" or "program" to be set in /etc/mdadm.conf.
I believe this is suitable for Fedora.

Signed-off-by: NeilBrown <neilb@suse.de>
Makefile
systemd/SUSE-mdadm_env.sh [new file with mode: 0644]
systemd/mdmonitor.service [new file with mode: 0644]
udev-md-raid-arrays.rules