1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-06-25 06:32:53 +00:00

- Flags bei "ps" werden in anderer Reihenfolge geprueft (aus CVS-HEAD).

This commit is contained in:
Alexander Barton 2002-09-20 13:46:22 +00:00
parent 97d4e580ae
commit cf20b16d2a
2 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
# ngIRCd Test Suite
# $Id: start-server.sh,v 1.5 2002/09/16 09:53:16 alex Exp $
# $Id: start-server.sh,v 1.5.2.1 2002/09/20 13:46:22 alex Exp $
echo " starting server ..."
@ -11,9 +11,9 @@ 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_FLAGS=a; PS_PIDCOL=1
ps a > /dev/null 2>&1
if [ $? -ne 0 ]; then PS_FLAGS=-f; PS_PIDCOL=2; fi
PS_FLAGS=-f; PS_PIDCOL=2
ps $PS_FLAGS > /dev/null 2>&1
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 }"`

View File

@ -1,12 +1,12 @@
#!/bin/sh
# ngIRCd Test Suite
# $Id: stop-server.sh,v 1.4 2002/09/16 09:53:16 alex Exp $
# $Id: stop-server.sh,v 1.4.2.1 2002/09/20 13:46:22 alex Exp $
echo " stopping server ..."
PS_FLAGS=a; PS_PIDCOL=1
ps a > /dev/null 2>&1
if [ $? -ne 0 ]; then PS_FLAGS=-f; PS_PIDCOL=2; fi
PS_FLAGS=-f; PS_PIDCOL=2
ps $PS_FLAGS > /dev/null 2>&1
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 }"`