From mboxrd@z Thu Jan 1 00:00:00 1970 From: rohara@sourceware.org Date: 5 Jan 2007 16:43:20 -0000 Subject: [Cluster-devel] cluster/fence/init.d fenced Message-ID: <20070105164320.5369.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Branch: STABLE Changes by: rohara at sourceware.org 2007-01-05 16:43:20 Modified files: fence/init.d : fenced Log message: Add timeout (default 120 seconds) to 'fence_tool leave'. If the cluster is not quorate, fenced (fence_tool actually) will wait 120 seconds before it gives up. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/init.d/fenced.diff?cvsroot=cluster&only_with_tag=STABLE&r1=1.1.2.2.4.1.2.2&r2=1.1.2.2.4.1.2.3 --- cluster/fence/init.d/Attic/fenced 2006/01/23 19:24:10 1.1.2.2.4.1.2.2 +++ cluster/fence/init.d/Attic/fenced 2007/01/05 16:43:20 1.1.2.2.4.1.2.3 @@ -20,6 +20,13 @@ # wait indefinately for fenced to start. FENCED_START_TIMEOUT=120 +# FENCED_STOP_TIMEOUT -- amount of time to wait for stopping fenced +# before giving up. If FENCED_STOP_TIMEOUT is positive, then we will +# wait FENCED_STOP_TIMEOUT seconds before giving up and failing when +# fenced does not stop. If FENCED_STOP_TIMEOUT is zero, then +# wait indefinately for fenced to stop. +FENCED_STOP_TIMEOUT=120 + start() { echo -n "Starting fence domain:" @@ -76,9 +83,9 @@ if pidof fenced &> /dev/null then - fence_tool leave > /dev/null 2>&1 + fence_tool -t $FENCED_STOP_TIMEOUT leave > /dev/null 2>&1 rtrn=$? - + if [ $rtrn -eq 0 ] then success "shutdown"