diff options
| author | Alexander Barton <alex@barton.de> | 2002-09-16 09:53:16 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2002-09-16 09:53:16 +0000 |
| commit | 508fa48aa6342beb50e510285b683abe54e0fe92 (patch) | |
| tree | 441315471e675c1d591c9dedb8ed3a5c0f70fc24 /src/testsuite/start-server.sh | |
| parent | 66b461a5ab2a67a9cf9b152b21c9335fda795f42 (diff) | |
| download | ngircd-508fa48aa6342beb50e510285b683abe54e0fe92.tar.gz ngircd-508fa48aa6342beb50e510285b683abe54e0fe92.zip | |
- es wird nun getestet, mit welchen Parametern "ps" aufgerufen werden muss.
Diffstat (limited to 'src/testsuite/start-server.sh')
| -rwxr-xr-x | src/testsuite/start-server.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/testsuite/start-server.sh b/src/testsuite/start-server.sh index 9413ba56..8b155039 100755 --- a/src/testsuite/start-server.sh +++ b/src/testsuite/start-server.sh @@ -1,6 +1,6 @@ #!/bin/sh # ngIRCd Test Suite -# $Id: start-server.sh,v 1.4 2002/09/13 06:04:49 alex Exp $ +# $Id: start-server.sh,v 1.5 2002/09/16 09:53:16 alex Exp $ echo " starting server ..." @@ -11,8 +11,12 @@ echo "This is an ngIRCd Test Server" > ngircd-test.motd ./ngircd-TEST -np -f ${srcdir}/ngircd-test.conf > ngircd-test.log 2>&1 & sleep 1 -ps ax > procs.tmp -pid=`cat procs.tmp | grep ngircd-TEST | awk "{ print \\\$1 }"` +PS_FLAGS=a; PS_PIDCOL=1 +ps a > /dev/null 2>&1 +if [ $? -ne 0 ]; then PS_FLAGS=-f; PS_PIDCOL=2; fi + +ps $PS_FLAGS > procs.tmp +pid=`cat procs.tmp | grep ngircd-TEST | awk "{ print \\\$$PS_PIDCOL }"` kill -0 $pid > /dev/null 2>&1 # -eof- |