From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/luci/init.d luci
Date: 4 Feb 2010 23:36:35 -0000 [thread overview]
Message-ID: <20100204233635.4491.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: conga
Branch: RHEL5
Changes by: rmccabe at sourceware.org 2010-02-04 23:36:35
Modified files:
luci/init.d : luci
Log message:
conga: fix bz469881
Give luci more time to start up. This should fix problems with the luci init script when luci is running on a heavily loaded (or just very slow) machine.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/init.d/luci.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.11.2.5&r2=1.11.2.6
--- conga/luci/init.d/luci 2008/04/11 06:50:32 1.11.2.5
+++ conga/luci/init.d/luci 2010/02/04 23:36:34 1.11.2.6
@@ -138,7 +138,7 @@
fi
stop_luci
- max_wait=10
+ max_wait=25
cur_wait=0
while [ $cur_wait -lt $max_wait ]; do
sleep 1
@@ -150,7 +150,11 @@
done
if [ $? -ne 0 ]; then
- errmsg='Failed to stop luci'
+ if [ $cur_wait -eq $max_wait ]; then
+ errmsg="Luci did not stop after $max_wait seconds."
+ else
+ errmsg='Failed to stop luci'
+ fi
return 1
fi
return 0
@@ -170,7 +174,7 @@
sh $LUCID >&/dev/null &
cur_wait=0
- max_wait=10
+ max_wait=25
luci_running
ret=$?
while [ $ret -ne 1 ] && [ $cur_wait -lt $max_wait ]; do
@@ -181,7 +185,11 @@
done
if [ $ret -ne 1 ]; then
- errmsg='An error occurred while starting luci'
+ if [ $cur_wait -eq $max_wait ]; then
+ errmsg="Luci did not start after $max_wait seconds."
+ else
+ errmsg='An error occurred while starting luci'
+ fi
stop_luci
return 1
fi
next reply other threads:[~2010-02-04 23:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-04 23:36 rmccabe [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-02-05 18:41 [Cluster-devel] conga/luci/init.d luci rmccabe
2008-02-05 18:31 rmccabe
2007-06-05 16:03 rmccabe
2007-05-22 1:39 rmccabe
2007-03-15 16:52 rmccabe
2007-02-20 17:56 rmccabe
2006-11-02 0:23 kupcevic
2006-10-03 18:23 kupcevic
2006-09-26 0:22 kupcevic
2006-07-17 20:56 kupcevic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100204233635.4491.qmail@sourceware.org \
--to=rmccabe@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.