1 # $OpenBSD: reconfigure.sh,v 1.6 2017/04/30 23:34:55 djm 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 ${SSH} -F $OBJ/ssh_config somehost true
23 fail "ssh connect with failed before reconfigure"
26 PID=`$SUDO cat $PIDFILE`
30 trace "wait for sshd to restart"
32 while [ ! -f $PIDFILE -a $i -lt 10 ]; do
37 test -f $PIDFILE || fatal "sshd did not restart"
39 trace "connect after restart"
40 ${SSH} -F $OBJ/ssh_config somehost true
42 fail "ssh connect with failed after reconfigure"