projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use YAZ GFS PID file instead of zebrasrv.pid
[idzebra-moved-to-github.git]
/
test
/
gils
/
timing2.sh
diff --git
a/test/gils/timing2.sh
b/test/gils/timing2.sh
index
e34b1c2
..
ddbd0fa
100755
(executable)
--- a/
test/gils/timing2.sh
+++ b/
test/gils/timing2.sh
@@
-1,5
+1,5
@@
#!/bin/sh
#!/bin/sh
-# $Id: timing2.sh,v 1.9 2004-06-15 09:43:30 adam Exp $
+# $Id: timing2.sh,v 1.10 2005-01-02 23:21:31 adam Exp $
# Demonstrated that updates depend on file timestamps
pp=${srcdir:-"."}
# Demonstrated that updates depend on file timestamps
pp=${srcdir:-"."}
@@
-14,13
+14,10
@@
rm -f $pp/records/esdd000[12].grs # these should not be here, will be created la
../../index/zebraidx -c $pp/zebra2.cfg -l $LOG init || exit 1
touch timeref1 # make an early timestamp
../../index/zebraidx -c $pp/zebra2.cfg -l $LOG init || exit 1
touch timeref1 # make an early timestamp
-echo " killing old server (if any)..." >>$LOG
-test -f zebrasrv.pid && kill -9 `cat zebrasrv.pid`
-
echo " starting server..." >>$LOG
echo " starting server..." >>$LOG
-../../index/zebrasrv -S -c $pp/zebra2.cfg -l $LOG tcp:@:9901 &
+../../index/zebrasrv -D -p z.pid -S -c $pp/zebra2.cfg -l $LOG tcp:@:9901
sleep 1
sleep 1
-test -f zebrasrv.pid || exit 1
+test -f z.pid || exit 1
touch timeref2 # make a later timestamp
echo " update 1..." >>$LOG
touch timeref2 # make a later timestamp
echo " update 1..." >>$LOG
@@
-66,9
+63,9
@@
echo " checking..." >>$LOG
grep "^Result count: 9$" log >/dev/null || exit 1
echo "stopping server..." >>$LOG
grep "^Result count: 9$" log >/dev/null || exit 1
echo "stopping server..." >>$LOG
-test -f zebrasrv.pid || exit 1
-kill `cat zebrasrv.pid` || exit 1
+test -f z.pid || exit 1
+kill `cat z.pid` || exit 1
rm -f log timeref[12]
rm -f $pp/records/esdd000[12].grs
rm -f log timeref[12]
rm -f $pp/records/esdd000[12].grs
-rm -f zebrasrv.pid
+rm -f z.pid