projects
/
ngircd-alex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05bf66d
)
- PID des Test-Servers wird besser ermittelt.
author
Alexander Barton
<alex@barton.de>
Thu, 12 Sep 2002 02:27:47 +0000
(
02:27
+0000)
committer
Alexander Barton
<alex@barton.de>
Thu, 12 Sep 2002 02:27:47 +0000
(
02:27
+0000)
src/testsuite/stop-server.sh
patch
|
blob
|
history
diff --git
a/src/testsuite/stop-server.sh
b/src/testsuite/stop-server.sh
index 30b5df94363b289a16bcd10e6d13dc16928fa5da..7cacc83e4e456e910726a2ab74faf44da4562ec0 100755
(executable)
--- a/
src/testsuite/stop-server.sh
+++ b/
src/testsuite/stop-server.sh
@@
-1,10
+1,11
@@
#!/bin/sh
# ngIRCd Test Suite
-# $Id: stop-server.sh,v 1.
1 2002/09/09 10:16:24
alex Exp $
+# $Id: stop-server.sh,v 1.
2 2002/09/12 02:27:47
alex Exp $
echo " stopping server ..."
-pid=`ps a | grep ngircd-test | head -n 1 | cut -d ' ' -f 1`
+ps a > procs.tmp
+pid=`cat procs.tmp | grep ngircd-TEST | awk "{ print \\\$1 }"`
kill $pid > /dev/null 2>&1
# -eof-