mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-16 02:25:40 +00:00
- Test-Server wird in aktuelles Verzeichnis als "ngircd-TEST" verlinkt.
- die PID des Test-ngIRCd wird besser ermittelt.
This commit is contained in:
parent
069ca5df40
commit
05bf66dff0
@ -1,17 +1,18 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# ngIRCd Test Suite
|
# ngIRCd Test Suite
|
||||||
# $Id: start-server.sh,v 1.2 2002/09/09 22:56:07 alex Exp $
|
# $Id: start-server.sh,v 1.3 2002/09/12 02:27:30 alex Exp $
|
||||||
|
|
||||||
echo " starting server ..."
|
echo " starting server ..."
|
||||||
|
|
||||||
echo "This is an ngIRCd Test Server" > ngircd-test.motd
|
|
||||||
|
|
||||||
../ngircd/ngircd -np -f ngircd-test.conf > ngircd-test.log 2>&1 &
|
|
||||||
sleep 1
|
|
||||||
|
|
||||||
pid=`ps a | grep ngircd-test | head -n 1 | cut -d ' ' -f 1`
|
|
||||||
kill -0 $pid > /dev/null 2>&1
|
|
||||||
|
|
||||||
rm -rf logs
|
rm -rf logs
|
||||||
|
|
||||||
|
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 a > procs.tmp
|
||||||
|
pid=`cat procs.tmp | grep ngircd-TEST | awk "{ print \\\$1 }"`
|
||||||
|
kill -0 $pid > /dev/null 2>&1
|
||||||
|
|
||||||
# -eof-
|
# -eof-
|
||||||
|
Loading…
Reference in New Issue
Block a user