You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Comrad/bin/komrade-op

22 lines
448 B
Plaintext

##
# Run THE OPERATOR
##
# settings
export KOMRADE_SHOW_LOG=1
# get virtualenv going
SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
path=`realpath "$SCRIPTPATH/../komrade/backend/switchboard.py"`
pathvenv=`realpath "$SCRIPTPATH/../venv/bin/activate"`
source $pathvenv
# run op forever
cmd="python $path 8080 $*"
while true; do $cmd && break; done
#if command -v deactivate &> /dev/null
#then
# deactivate
#fi