2002-09-09 10:16:24 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# ngIRCd Test Suite
|
2002-09-12 02:27:30 +00:00
|
|
|
# $Id: start-server.sh,v 1.3 2002/09/12 02:27:30 alex Exp $
|
2002-09-09 10:16:24 +00:00
|
|
|
|
|
|
|
echo " starting server ..."
|
|
|
|
|
2002-09-12 02:27:30 +00:00
|
|
|
rm -rf logs
|
|
|
|
|
2002-09-09 10:16:24 +00:00
|
|
|
echo "This is an ngIRCd Test Server" > ngircd-test.motd
|
|
|
|
|
2002-09-12 02:27:30 +00:00
|
|
|
./ngircd-TEST -np -f ${srcdir}/ngircd-test.conf > ngircd-test.log 2>&1 &
|
2002-09-09 10:16:24 +00:00
|
|
|
sleep 1
|
|
|
|
|
2002-09-12 02:27:30 +00:00
|
|
|
ps a > procs.tmp
|
|
|
|
pid=`cat procs.tmp | grep ngircd-TEST | awk "{ print \\\$1 }"`
|
2002-09-09 10:16:24 +00:00
|
|
|
kill -0 $pid > /dev/null 2>&1
|
|
|
|
|
|
|
|
# -eof-
|