Assume PID file has been created just after server has started
[idzebra-moved-to-github.git] / test / gils / stop03.sh
index 3b8cbe7..8523036 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $Id: stop03.sh,v 1.9 2005-01-02 23:21:31 adam Exp $
+# $Id: stop03.sh,v 1.10 2005-01-03 09:19:26 adam Exp $
 # test start and stop of the threaded server (-T)
 
 pp=${srcdir:-"."}
@@ -22,6 +22,9 @@ if grep 'not available' out >/dev/null; then
     exit 0
 fi
 
+echo "  checking that it runs..." >>$LOG
+test -f z.pid || exit 1
+
 PID=`cat z.pid`
 echo "  checking that it still runs..." >>$LOG
 kill -CHLD $PID >/dev/null 2>&1 || exit 1