]> andersk Git - openssh.git/blame - regress/reconfigure.sh
- (dtucker) [configure.ac misc.c readconf.c servconf.c ssh-keyscan.c] Make
[openssh.git] / regress / reconfigure.sh
CommitLineData
63a556df 1# $OpenBSD: reconfigure.sh,v 1.2 2003/06/21 09:14:05 markus Exp $
1d6c0b69 2# Placed in the Public Domain.
3
4tid="simple connect after reconfigure"
5
6# we need the full path to sshd for -HUP
c4cc19d5 7case $SSHD in
8/*)
9 # full path is OK
10 ;;
11*)
12 # otherwise make fully qualified
13 SSHD=$OBJ/$SSHD
14esac
1d6c0b69 15
16start_sshd
17
29aaf112 18PID=`cat $PIDFILE`
19rm -f $PIDFILE
20$SUDO kill -HUP $PID
1d6c0b69 21
22trace "wait for sshd to restart"
23i=0;
24while [ ! -f $PIDFILE -a $i -lt 10 ]; do
25 i=`expr $i + 1`
26 sleep $i
27done
28
29test -f $PIDFILE || fatal "sshd did not restart"
30
31for p in 1 2; do
32 ${SSH} -o "Protocol=$p" -F $OBJ/ssh_config somehost true
33 if [ $? -ne 0 ]; then
34 fail "ssh connect with protocol $p failed after reconfigure"
35 fi
36done
This page took 1.590773 seconds and 5 git commands to generate.