1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-05-19 15:44:09 +00:00

- die ermittelte PID des ngIRCd wird besser validiert (leer?).

This commit is contained in:
Alexander Barton 2002-09-20 13:55:51 +00:00
parent cf20b16d2a
commit 9f9f676716
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
# ngIRCd Test Suite
# $Id: start-server.sh,v 1.5.2.1 2002/09/20 13:46:22 alex Exp $
# $Id: start-server.sh,v 1.5.2.2 2002/09/20 13:55:51 alex Exp $
echo " starting server ..."
@ -17,6 +17,6 @@ if [ $? -ne 0 ]; then PS_FLAGS=a; PS_PIDCOL=1; fi
ps $PS_FLAGS > procs.tmp
pid=`cat procs.tmp | grep ngircd-TEST | awk "{ print \\\$$PS_PIDCOL }"`
kill -0 $pid > /dev/null 2>&1
[ -n "$pid" ] && kill -0 $pid > /dev/null 2>&1 || exit 1
# -eof-

View File

@ -1,6 +1,6 @@
#!/bin/sh
# ngIRCd Test Suite
# $Id: stop-server.sh,v 1.4.2.1 2002/09/20 13:46:22 alex Exp $
# $Id: stop-server.sh,v 1.4.2.2 2002/09/20 13:55:51 alex Exp $
echo " stopping server ..."
@ -10,6 +10,6 @@ if [ $? -ne 0 ]; then PS_FLAGS=a; PS_PIDCOL=1; fi
ps $PS_FLAGS > procs.tmp
pid=`cat procs.tmp | grep ngircd-TEST | awk "{ print \\\$$PS_PIDCOL }"`
kill $pid > /dev/null 2>&1
[ -n "$pid" ] && kill -0 $pid > /dev/null 2>&1 || exit 1
# -eof-