diff options
author | Greg Hudson <ghudson@mit.edu> | 2009-10-26 02:56:34 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2009-10-26 02:56:34 +0000 |
commit | 952e43aaf0572970470533ace3bc74ff921156fa (patch) | |
tree | 5fc2e1505b6ae71a8c2c2a04cebe3ccca33db783 /src/kadmin | |
parent | 97c3cc09827c370a96691b970d4e3ec5d973d4c2 (diff) | |
download | krb5-952e43aaf0572970470533ace3bc74ff921156fa.zip krb5-952e43aaf0572970470533ace3bc74ff921156fa.tar.gz krb5-952e43aaf0572970470533ace3bc74ff921156fa.tar.bz2 |
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
Diffstat (limited to 'src/kadmin')
-rwxr-xr-x | src/kadmin/testing/scripts/start_servers_local | 98 |
1 files changed, 27 insertions, 71 deletions
diff --git a/src/kadmin/testing/scripts/start_servers_local b/src/kadmin/testing/scripts/start_servers_local index a8890d7..0cbed46 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 <<EOF - $LOG_USER -# spawn telnet localhost 1751 -# Connect to 127.0.0.1 explicitly, so failure to connect to ::1 will not -# cause bogus errors. - spawn telnet 127.0.0.1 1751 - expect { - "Connection refused" { - close - wait - exit 1 - } - "Connected" { - send "close\n" - close - wait - exit 0 - } - default { - catch {close} - wait - exit 1 - } - } -EOF - then - rm -f $kdc_start_file $adm_start_file - break - else - if $VERBOSE; then - echo "Could not connect to Admin server;" \ - "attempting restart ($sofar_s" \ - "seconds so far)." - fi - max_s=$timewait_s - continue - fi - else - 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 + 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 |