]> arthur.barton.de Git - ngircd-alex.git/blob - src/testsuite/start-server.sh
11b8121b4fa7e0c5ee23e23f69bd44136964063b
[ngircd-alex.git] / src / testsuite / start-server.sh
1 #!/bin/sh
2 # ngIRCd Test Suite
3 # $Id: start-server.sh,v 1.1 2002/09/09 10:16:24 alex Exp $
4
5 echo "      starting server ..."
6
7 echo "This is an ngIRCd Test Server" > ngircd-test.motd
8
9 ../ngircd/ngircd -np -f ngircd-test.conf > ngircd-test.log 2>&1 &
10 sleep 1
11
12 pid=`ps a | grep ngircd-test | head -n 1 | cut -d ' ' -f 1`
13 kill -0 $pid > /dev/null 2>&1
14
15 # -eof-