projects
/
irspy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
635a412
)
check for running zebra before starting zebrasrv
author
Wolfram Schneider
<wosch@indexdata.dk>
Fri, 18 Apr 2014 09:25:37 +0000
(09:25 +0000)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Fri, 18 Apr 2014 09:25:37 +0000
(09:25 +0000)
zebra/Makefile
patch
|
blob
|
history
diff --git
a/zebra/Makefile
b/zebra/Makefile
index
71c9b9a
..
35a4a25
100644
(file)
--- a/
zebra/Makefile
+++ b/
zebra/Makefile
@@
-53,7
+53,17
@@
dump:
clean:
rm -f terse.properties
-start-zebra:
+check-running-zebrasrv:
+ @if zoomsh -e "open localhost:8018" "quit" >/dev/null; then \
+ echo ""; \
+ echo "There is already a running zebrasrv on localhost:8018"; \
+ echo "You may need to run: killall zebrasrv-2.0"; \
+ false; \
+ else \
+ true; \
+ fi
+
+start-zebra: check-running-zebrasrv
zebrasrv-2.0 -f $$(pwd)/yazserver.xml > ${ZEBRA_LOGFILE} 2>&1 &
stop-zebra: