diff --git a/webapp/startweb.sh b/webapp/startweb.sh old mode 100644 new mode 100755 index aad6f7f..b4b0e96 --- a/webapp/startweb.sh +++ b/webapp/startweb.sh @@ -1,6 +1,8 @@ #!/bin/sh -if [ -f "`command -v screen`"]; then +if [ -f "`command -v screen`" ]; then screen -S EnlivenMinetest node server.js else - nohup node server.js & + nohup node server.js & | exit 1 + echo "node server.js is running in background. terminate as follows:" + echo " killall node" fi