[PATCH] rgmanager ip.sh rdisc calls fix

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

 



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

--

Linux-cluster@xxxxxxxxxx
http://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux