re-open server when closed

This commit is contained in:
The Ghost of FOSS' Past 2024-10-28 13:16:08 -05:00
parent 9639d24e82
commit 4a5139857d

2
run.sh
View file

@ -4,7 +4,7 @@
SESSION_NAME="ubertuberFrontend"
# Command to run your Node.js script
NODE_COMMAND="node /home/sparky/ubertuber-backend/index.js"
NODE_COMMAND="while true; do node /home/sparky/ubertuber-backend/index.js; done"
# Check if the screen session already exists
if screen -list | grep -q "$SESSION_NAME"; then