]> andersk Git - openssh.git/blobdiff - regress/reconfigure.sh
- djm@cvs.openbsd.org 2005/05/20 23:14:15
[openssh.git] / regress / reconfigure.sh
index 4315f0a40eb62bce06433c51252121084da9f5b7..1daf29f9a6e83631fdec6a406ac2aaab65e6ee19 100644 (file)
@@ -4,12 +4,20 @@
 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
 
-$SUDO 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.036881 seconds and 4 git commands to generate.