Added telegram support

This commit is contained in:
Ziver Koc 2023-03-04 00:24:20 +01:00
parent aff64c354c
commit bda3f270af
4 changed files with 34 additions and 3 deletions

5
run.sh
View file

@ -110,14 +110,15 @@ if [[ ${MODE} == "FOREGROUND" ]]; then
while [[ ${EXIT_CODE} -eq 200 ]]; do
# Restart as long as we have a exit code of 200, this allows the application to restart itself
startHal
#startHal
./gradlew run
EXIT_CODE=$?
done
elif [[ ${MODE} == "BACKGROUND" ]]; then
# Kill current session
screen -S hal -X kill
# Start new session
screen -S hal -L -d -m ./run --foreground
screen -S hal -L -d -m $(dirname "$0")/run.sh --foreground
echo "-------------------------"
screen -list