re-open server when closed
This commit is contained in:
parent
9639d24e82
commit
4a5139857d
1 changed files with 1 additions and 1 deletions
2
run.sh
2
run.sh
|
@ -4,7 +4,7 @@
|
||||||
SESSION_NAME="ubertuberFrontend"
|
SESSION_NAME="ubertuberFrontend"
|
||||||
|
|
||||||
# Command to run your Node.js script
|
# 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
|
# Check if the screen session already exists
|
||||||
if screen -list | grep -q "$SESSION_NAME"; then
|
if screen -list | grep -q "$SESSION_NAME"; then
|
||||||
|
|
Loading…
Reference in a new issue