simpliest possible configuration and star/stop script
[blackray-experiments.git] / start.sh
diff --git a/start.sh b/start.sh
new file mode 100755 (executable)
index 0000000..7ddd9c2
--- /dev/null
+++ b/start.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+BLACKRAY_DIR="/opt/blackray"
+export BLACKRAY_CONF=./blackray.conf
+export BLACKRAY_LOG_DIR=./log/
+
+mkdir $BLACKRAY_LOG_DIR
+
+$BLACKRAY_DIR/bin/blackray_start -no-log || exit 1
+$BLACKRAY_DIR/bin/blackray_loader -c `pwd`/load.xml -d `pwd` -e "default -p 8890" || exit 1
+
+echo "Exit blackray_cli to shoutdown blackray!"
+
+$BLACKRAY_DIR/bin/blackray_cli -e "default -p 8889"
+
+$BLACKRAY_DIR/bin/blackray_stop -no-log || exit 1