]> andersk Git - openssh.git/blobdiff - regress/reconfigure.sh
- dtucker@cvs.openbsd.org 2008/06/10 15:28:49
[openssh.git] / regress / reconfigure.sh
index 1de846a7e96d8aa7ad7373321f9e7ef702f6fff2..1daf29f9a6e83631fdec6a406ac2aaab65e6ee19 100644 (file)
@@ -1,15 +1,23 @@
-#      $OpenBSD: reconfigure.sh,v 1.1 2003/06/12 15:43:32 markus Exp $
+#      $OpenBSD: reconfigure.sh,v 1.2 2003/06/21 09:14:05 markus Exp $
 #      Placed in the Public Domain.
 
 tid="simple connect after reconfigure"
 
 # we need the full path to sshd for -HUP
-SSHD=/usr/sbin/sshd
+case $SSHD in
+/*)
+       # full path is OK 
+       ;;
+*)
+       # otherwise make fully qualified
+       SSHD=$OBJ/$SSHD
+esac
 
 start_sshd
 
-kill -HUP `cat $PIDFILE`
-sleep 1
+PID=`cat $PIDFILE`
+rm -f $PIDFILE
+$SUDO kill -HUP $PID
 
 trace "wait for sshd to restart"
 i=0;
This page took 0.034422 seconds and 4 git commands to generate.