2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-17 21:25:37 +00:00
Comrad/bin/komrade-op

16 lines
309 B
Plaintext
Raw Normal View History

2020-09-14 13:10:14 +00:00
##
# Run THE OPERATOR
##
2020-09-14 13:06:50 +00:00
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
path=`realpath "$SCRIPTPATH/../komrade/backend/switchboard.py"`
pathvenv=`realpath "$SCRIPTPATH/../venv/bin/activate"`
source $pathvenv
cmd="python $path 8080"
2020-09-14 13:10:14 +00:00
# do forever
while true; do python $cmd && break; done
2020-09-14 13:06:50 +00:00