[Linux-cluster] [PATCH] rgmanager ip.sh rdisc calls fix

Frederik Schueler fs at lowpingbastards.de
Mon May 30 16:40:36 UTC 2005


Hello,

the rdisc (router discovery daemon) calls in the rgmanager ip.sh
resource script fail if the daemon is not installed, these calls should
be wrapped. 
See attached patch.

Kind regards
Frederik Schueler

-- 
ENOSIG
-------------- next part --------------
--- /usr/share/cluster/ip.sh	2005-05-26 12:26:10.000000000 +0200
+++ ip.sh	2005-05-30 18:39:02.000000000 +0200
@@ -594,7 +594,11 @@
 	#
 
 	# Not sure if this is necessary for ipv6 either.
-	killall -HUP rdisc || rdisc -fs
+	file=$(which rdisc 2>/dev/null)
+	if [ -f "$file" ]; then
+		killall -HUP rdisc || rdisc -fs
+	fi
+
 	return 0
 }
 
@@ -646,7 +650,11 @@
  		arping -q -c 2 -U -I $dev $addr
 	fi
 
-	killall -HUP rdisc || rdisc -fs
+	file=$(which rdisc 2>/dev/null)
+	if [ -f "$file" ]; then
+		killall -HUP rdisc || rdisc -fs
+	fi
+
 	return 0
 }
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20050530/04f4768a/attachment.sig>


More information about the Linux-cluster mailing list