handling stuff

community
Steve L. Nyemba 6 years ago
parent 7ffe564d8c
commit b3036c05b1

@ -1,9 +1,10 @@
{ {
"api":"dev.the-phi.com", "protocol":"http",
"plan":"monitor-light", "api":"localhost:8084",
"default_plan":"plan_D57KqIeZc7vYFo",
"store":{ "store":{
"class":{"read":"CouchdbReader","write":"CouchdbWriter"}, "class":{"read":"CouchdbReader","write":"CouchdbWriter"},
"args":{"uri":"http://dev.the-phi.com:5984","dbname":"monitor","uid":"logs"} "args":{"uri":"http://admin:@dm1n@dev.the-phi.com:5985","dbname":"smart-top","uid":"logs"}
} }

@ -26,7 +26,7 @@ upgrade(){
} }
start(){ start(){
sandbox/bin/python src/api/index.py --path $PWD/config.json sandbox/bin/python src/api/index.py --path $PWD/config.json --context monitor &
} }
stop(){ stop(){
@ -37,9 +37,9 @@ stop(){
status(){ status(){
pid=`ps -eo pid,command|grep python|grep -E "$PWD"|grep index.py|grep -E "^ {0,}[0-9]+" -m 1 -o` pid=`ps -eo pid,command|grep python|grep -E "$PWD"|grep index.py|grep -E "^ {0,}[0-9]+" -m 1 -o`
if [ "$pid" = "" ]; then if [ "$pid" = "" ]; then
echo "Monitor API is Offline" echo "Smart-Top API is Offline"
else else
echo "Monitor API is Online $pid" echo "Smart-Top API is Online $pid"
fi fi
} }

@ -1,8 +0,0 @@
#!/bin/bash
#script_dir=`dirname $0`
#cd $script_dir
#/bin/bash -c ". activate sandbox; exec /bin/bash -i"
`source activate sandbox`
export PYTHONPATH=$PWD/src
python src/utils/agents/data-collector.py --path /Users/michaelmead/Documents/Programming/monitor/config.json --title "Seekers Dashboard"
Loading…
Cancel
Save