From 952e43aaf0572970470533ace3bc74ff921156fa Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Mon, 26 Oct 2009 02:56:34 +0000 Subject: [PATCH] Remove the telnet-to-localhost sanity check in start_servers_local, as the system telnet will not necessarily run correctly with LD_LIBRARY_PATH pointing at the Kerberos libraries from the build tree. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23042 dc483132-0cff-0310-8789-dd5450dbe970 --- .../testing/scripts/start_servers_local | 98 +++++-------------- 1 file changed, 27 insertions(+), 71 deletions(-) diff --git a/src/kadmin/testing/scripts/start_servers_local b/src/kadmin/testing/scripts/start_servers_local index a8890d731..0cbed462d 100755 --- a/src/kadmin/testing/scripts/start_servers_local +++ b/src/kadmin/testing/scripts/start_servers_local @@ -124,82 +124,38 @@ timewait_s=300 ovadm_args=-W -while true; do - rm -f $adm_start_file +rm -f $adm_start_file - (sleep 1; cd $TOP/server; ./kadmind $ovadm_args; \ - touch $adm_start_file) < /dev/null > $usrtmp/kadm-log.$USER 2>&1 & +(sleep 1; cd $TOP/server; ./kadmind $ovadm_args; \ + touch $adm_start_file) < /dev/null > $usrtmp/kadm-log.$USER 2>&1 & - # wait until they start +# wait until they start - while [ $sofar_s -le $max_s ]; do - if $VERBOSE; then - echo "Sleeping for $s seconds to allow servers" \ - "to start..." - fi - - sofar_s=`expr $sofar_s + $s` - - sleep $s +while [ $sofar_s -le $max_s ]; do + if $VERBOSE; then + echo "Sleeping for $s seconds to allow servers" \ + "to start..." + fi - if [ -f $adm_start_file -a -f $kdc_start_file ]; then - break - fi + sofar_s=`expr $sofar_s + $s` - done + sleep $s - if [ $sofar_s -le $max_s ]; then - if $VERBOSE; then - LOG_USER='log_user 1' - else - LOG_USER='log_user 0' - fi - if $EXPECT <&2 - if [ ! -f $adm_start_file ]; then - echo " No admin server start file $adm_start_file." 1>&2 - fi - if [ ! -f $kdc_start_file ]; then - echo " No KDC start file $adm_start_file." 1>&2 - fi - exit 1 + if [ -f $adm_start_file -a -f $kdc_start_file ]; then + break fi done + +if [ $sofar_s -gt $max_s ]; then + echo "Admin server or KDC failed to start after $sofar_s" \ + "seconds." 1>&2 + if [ ! -f $adm_start_file ]; then + echo " No admin server start file $adm_start_file." 1>&2 + fi + if [ ! -f $kdc_start_file ]; then + echo " No KDC start file $adm_start_file." 1>&2 + fi + exit 1 +fi + +rm -f $kdc_start_file $adm_start_file -- 2.26.2