1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-10-28 21:06:16 +00:00
ngircd/src/testsuite/start-server.sh

19 lines
396 B
Bash
Raw Normal View History

2002-09-09 10:16:24 +00:00
#!/bin/sh
# ngIRCd Test Suite
# $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 ..."
rm -rf logs
2002-09-09 10:16:24 +00:00
echo "This is an ngIRCd Test Server" > ngircd-test.motd
./ngircd-TEST -np -f ${srcdir}/ngircd-test.conf > ngircd-test.log 2>&1 &
2002-09-09 10:16:24 +00:00
sleep 1
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-