mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-26 15:26:51 +00:00
- es wird nun getestet, mit welchen Parametern "ps" aufgerufen werden muss.
This commit is contained in:
parent
66b461a5ab
commit
508fa48aa6
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# ngIRCd Test Suite
|
# 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 ..."
|
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 &
|
./ngircd-TEST -np -f ${srcdir}/ngircd-test.conf > ngircd-test.log 2>&1 &
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
ps ax > procs.tmp
|
PS_FLAGS=a; PS_PIDCOL=1
|
||||||
pid=`cat procs.tmp | grep ngircd-TEST | awk "{ print \\\$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
|
kill -0 $pid > /dev/null 2>&1
|
||||||
|
|
||||||
# -eof-
|
# -eof-
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# ngIRCd Test Suite
|
# ngIRCd Test Suite
|
||||||
# $Id: stop-server.sh,v 1.3 2002/09/13 06:04:49 alex Exp $
|
# $Id: stop-server.sh,v 1.4 2002/09/16 09:53:16 alex Exp $
|
||||||
|
|
||||||
echo " stopping server ..."
|
echo " stopping server ..."
|
||||||
|
|
||||||
ps ax > procs.tmp
|
PS_FLAGS=a; PS_PIDCOL=1
|
||||||
pid=`cat procs.tmp | grep ngircd-TEST | awk "{ print \\\$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 $pid > /dev/null 2>&1
|
kill $pid > /dev/null 2>&1
|
||||||
|
|
||||||
# -eof-
|
# -eof-
|
||||||
|
Loading…
Reference in New Issue
Block a user