Re: too many deamons by default - F7 test 2 live cd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux