diff --git a/mdmonitor.init b/mdmonitor.init index d7b68fb..1be12c9 100755 --- a/mdmonitor.init +++ b/mdmonitor.init @@ -41,9 +41,9 @@ usage () start () { # (Re)start mdmon to take over monitoring of mdmon started from the initrd - if [ -f /dev/.mdadm/*.pid ]; then + if [ -f /dev/md/*.pid ]; then origprog="$prog"; prog="mdmon" - action $"Starting $prog: " /sbin/mdmon /proc/mdstat / + action $"Starting $prog: " /sbin/mdmon --takeover --all prog="$origprog" fi # Make sure configuration file exists and has information we can use