diff --git a/init.sh b/init.sh deleted file mode 100755 index 89b44f2..0000000 --- a/init.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash -export PYTHONPATH=$PWD/src -STORE_CONTEXT=`echo $STORE_CONTEXT` -if [ -z "$STORE_CONTEXT" ]; then - STORE_CONTEXT='music/store' -fi - -echo "$STORE_CONTEXT" -install(){ - virtualenv sandbox - sandbox/bin/pip install -r requirements.txt -} - -start(){ - python3 src/api/index.py --path src/config.json --port 8084 --context $STORE_CONTEXT & > log -} - -stop(){ - ps -eo pid,command |grep python |grep $PWD |grep -E "^ {0,}[0-9]+" -o |xargs kill -9 -} -check(){ - pid=`ps -eo pid,command |grep python |grep $PWD |grep -E "^ {0,}[0-9]+" -o -m 1` - if [ "$pid" ]; then - echo "*** Online $pid" - else - echo "*** Offline" - fi -} -status(){ - check -} -$1 diff --git a/log b/log deleted file mode 100755 index e69de29..0000000