conga/luci/init.d luci
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.
luci/init.d/luci +12 -4
@@ -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