[prev in list] [next in list] [prev in thread] [next in thread] 

List:       redhat-linux-cluster
Subject:    [Linux-cluster] [PATCH] rgmanager ip.sh rdisc calls fix
From:       Frederik Schueler <fs () lowpingbastards ! de>
Date:       2005-05-30 16:40:36
Message-ID: 20050530164036.GB4049 () mail ! lowpingbastards ! de
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/mixed)]


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

["rhcluster-res-ipsh.diff" (text/plain)]

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

["signature.asc" (application/pgp-signature)]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic