On Mon, Mar 19, 2007 at 02:12:32PM -0400, Jeremy Katz wrote: > > mdmonitor, > > If you have RAID, this is important to have. It could be made to exit a > lot faster, though, by checking for the existence of mdadm.conf before > sourcing /etc/init.d/functions. Hmm, what about raid arrays created post install ? Checking /proc/mdstat might be safer, a la.. --- mdmonitor~ 2007-03-19 19:38:23.000000000 -0400 +++ mdmonitor 2007-03-19 19:38:38.000000000 -0400 @@ -16,6 +16,9 @@ OPTIONS="--monitor --scan -f --pid-file= prog=mdmonitor +if [ ! -f /proc/mdstat ]; then exit; fi +if [ $(cat /proc/mdstat | wc -l) -eq 2 ]; then exit; fi + # Source function library. . /etc/rc.d/init.d/functions -- http://www.codemonkey.org.uk -- fedora-devel-list mailing list fedora-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-devel-list