]> arthur.barton.de Git - ngircd-alex.git/blob - src/testsuite/start-server.sh
dae47970fc679dd4c929057b2be6c927710d8bc8
[ngircd-alex.git] / src / testsuite / start-server.sh
1 #!/bin/sh
2 # ngIRCd Test Suite
3 # $Id: start-server.sh,v 1.3 2002/09/12 02:27:30 alex Exp $
4
5 echo "      starting server ..."
6
7 rm -rf logs
8
9 echo "This is an ngIRCd Test Server" > ngircd-test.motd
10
11 ./ngircd-TEST -np -f ${srcdir}/ngircd-test.conf > ngircd-test.log 2>&1 &
12 sleep 1
13
14 ps a > procs.tmp
15 pid=`cat procs.tmp | grep ngircd-TEST | awk "{ print \\\$1 }"`
16 kill -0 $pid > /dev/null 2>&1
17
18 # -eof-