1 # $OpenBSD: reconfigure.sh,v 1.5 2015/03/03 22:35:19 markus Exp $
2 # Placed in the Public Domain.
4 tid="simple connect after reconfigure"
6 # we need the full path to sshd for -HUP
7 if test "x$USE_VALGRIND" = "x" ; then
13 # otherwise make fully qualified
20 trace "connect before restart"
21 for p in ${SSH_PROTOCOLS} ; do
22 ${SSH} -o "Protocol=$p" -F $OBJ/ssh_config somehost true
24 fail "ssh connect with protocol $p failed before reconfigure"
28 PID=`$SUDO cat $PIDFILE`
32 trace "wait for sshd to restart"
34 while [ ! -f $PIDFILE -a $i -lt 10 ]; do
39 test -f $PIDFILE || fatal "sshd did not restart"
41 trace "connect after restart"
42 for p in ${SSH_PROTOCOLS} ; do
43 ${SSH} -o "Protocol=$p" -F $OBJ/ssh_config somehost true
45 fail "ssh connect with protocol $p failed after reconfigure"