X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zebra%2FMakefile;h=35a4a2584a0664af03d2524be57e7ae76678152c;hb=45c7ffc5aa4562b03a9add900b463d6eca2bae12;hp=c6a73cbb467fcfec4d54cdf72a628221cb33c6e7;hpb=02a9748836eebbea43549f34ba8cf111a972eb7a;p=irspy-moved-to-github.git diff --git a/zebra/Makefile b/zebra/Makefile index c6a73cb..35a4a25 100644 --- a/zebra/Makefile +++ b/zebra/Makefile @@ -53,8 +53,18 @@ dump: clean: rm -f terse.properties -start-zebra: - zebrasrv-2.0 -f yazserver.xml > ${ZEBRA_LOGFILE} 2>&1 & +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: kill `cat ${ZEBRA_PID_FILE}`