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

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



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
--- /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
 }
 

Attachment: signature.asc
Description: Digital signature


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