about summary refs log tree commit diff
path: root/src/testsuite/start-server.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/testsuite/start-server.sh')
-rwxr-xr-xsrc/testsuite/start-server.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/testsuite/start-server.sh b/src/testsuite/start-server.sh
new file mode 100755
index 00000000..11b8121b
--- /dev/null
+++ b/src/testsuite/start-server.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+# ngIRCd Test Suite
+# $Id: start-server.sh,v 1.1 2002/09/09 10:16:24 alex Exp $
+
+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
+
+# -eof-