ZEBRAIDX= zebraidx-2.0
ZEBRAIDX_TEST= zebraidx-2.0 -c zebra-test.cfg
IRSPY_DATABASE= $${IRSpyDbName-"localhost:8018/IR-Explain---1"}
+ZEBRA_LOGFILE= irspy-zebra.log
+ZEBRA_PID_FILE= ${ZEBRA_DIR}/lock/zebrasrv.pid
+
# debugging
ZEBRA_TEST_DIR= db-test
clean:
rm -f terse.properties
+start-zebra:
+ zebrasrv-2.0 -f yazserver.xml > ${ZEBRA_LOGFILE} 2>&1 &
+
+stop-zebra:
+ kill `cat ${ZEBRA_PID_FILE}`
+ sleep 0.5
+ -kill -9 `cat ${ZEBRA_PID_FILE}`
+
distclean: clean
- rm -rf ${IRSPY_ARCHIVE} ${ZEBRA_DIR} ${ZEBRA_DIR} ${ZEBRA_TEST_DIR}
+ rm -rf ${IRSPY_ARCHIVE} ${ZEBRA_DIR} ${ZEBRA_DIR} ${ZEBRA_TEST_DIR} ${ZEBRA_LOGFILE}
help:
- @echo "make [ dump | test | newdb | newdb-test | clean | distclean ]"
+ @echo "make [ dump | test | newdb | newdb-test ]"
+ @echo " [ start-zebra | stop-zebra ]"
+ @echo " [ clean | distclean ]"