summaryrefslogtreecommitdiff
path: root/ot-tools-user.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ot-tools-user.sh')
-rw-r--r--ot-tools-user.sh28
1 files changed, 13 insertions, 15 deletions
diff --git a/ot-tools-user.sh b/ot-tools-user.sh
index b9b2d7e..e003ac4 100644
--- a/ot-tools-user.sh
+++ b/ot-tools-user.sh
@@ -72,8 +72,8 @@ otstart() {
"feature") start_unicorn $1 8084;;
"model") start_unicorn $1 8085;;
"task") start_unicorn $1 8086;;
- "validation") #start_unicorn $1 8087;;
- echo "$1 not available yet.";;
+ "validation") start_unicorn $1 8087;
+ nice bash -c "nohup redis-server $HOME/opentox-ruby/redis-*/redis.conf >/dev/null 2>&1 &";;
"4store") start_4s opentox 9088;
if ! pgrep -u $USER 4s-backend>/dev/null 2>&1; then echo "Failed to start 4s-backend."; fi
if ! pgrep -u $USER 4s-httpd>/dev/null 2>&1; then echo "Failed to start 4s-httpd."; fi;;
@@ -83,8 +83,8 @@ otstart() {
otstart dataset;
otstart feature;
otstart model;
- otstart task;;
- #otstart validation;;
+ otstart task;
+ otstart validation;;
*) echo "One argument required: [service_name] or 'all'";
echo "usage: otstart [all|algorithm|compound|dataset|feature|model|task|validation|4store]";
return 1;;
@@ -132,9 +132,8 @@ otreload() {
check_service "model";;
"task") reload_unicorn 8086;
check_service "task";;
- "validation") #reload_unicorn 8087;;
- #check_service "validation";
- echo "$1 not available yet.";;
+ "validation") reload_unicorn 8087;
+ check_service "validation";;
"4store") #killall 4s-httpd >/dev/null 2>&1;
#killall 4s-backend >/dev/null 2>&1;
#check_service "four_store";;
@@ -144,8 +143,8 @@ otreload() {
otreload dataset;
otreload feature;
otreload model;
- otreload task;;
- #otrelaod validation;
+ otreload task;
+ otrelaod validation;;
#otreload 4store;;
*) echo "One argument required: [service_name] or 'all'";
echo "usage: otreload [all|algorithm|compound|dataset|feature|model|task|validation|4store]";
@@ -176,8 +175,8 @@ otkill() {
"feature") kill_unicorn 8084;;
"model") kill_unicorn 8085;;
"task") kill_unicorn 8086;;
- "validation") #kill_unicorn 8087;;
- echo "$1 not available yet.";;
+ "validation") kill_unicorn 8087;
+ bash -c "redis-cli -p $OHM_PORT shutdown >/dev/null 2>&1";;
"4store") killall 4s-httpd >/dev/null 2>&1;
killall 4s-backend >/dev/null 2>&1;;
"all") otkill algorithm;
@@ -186,7 +185,7 @@ otkill() {
otkill feature;
otkill model;
otkill task;
- #otkill validation;
+ otkill validation;
otkill 4store;;
*) echo "One argument required: [service_name] or 'all'";
echo "usage: otkill [all|algorithm|compound|dataset|feature|model|task|validation|4store]";
@@ -265,8 +264,7 @@ otcheck() {
"feature") check_service "feature";;
"model") check_service "model";;
"task") check_service "task";;
- "validation") #check_service "validation";;
- echo "$1 not available yet.";;
+ "validation") check_service "validation";;
"4store") check_service "four_store";;
"all") otcheck "algorithm";
otcheck "compound";
@@ -274,7 +272,7 @@ otcheck() {
otcheck "feature";
otcheck "model";
otcheck "task";
- #otcheck "validation";
+ otcheck "validation";
otcheck 4store;;
*) echo "One argument required: [service_name] or 'all'";
echo "usage: otcheck [all|algorithm|compound|dataset|feature|model|task|validation|4store]";