[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: too many deamons by default - F7 test 2 live cd
- From: Dave Jones <davej redhat com>
- To: Development discussions related to Fedora Core <fedora-devel-list redhat com>
- Subject: Re: too many deamons by default - F7 test 2 live cd
- Date: Mon, 19 Mar 2007 19:40:13 -0400
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]