too many deamons by default - F7 test 2 live cd
Dave Jones
davej at redhat.com
Mon Mar 19 23:40:13 UTC 2007
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
More information about the fedora-devel-list
mailing list