diff --git a/lgsm/entrypoint.sh b/lgsm/entrypoint.sh index c6c4de7..3ce4014 100644 --- a/lgsm/entrypoint.sh +++ b/lgsm/entrypoint.sh @@ -59,7 +59,7 @@ function stopServer() { IS_RUNNING="false" echo "done!" } -./"$SERVER_EXECUTABLE" start & +./"$SERVER_EXECUTABLE" start trap stopServer SIGTERM #start cron @@ -71,9 +71,10 @@ bash "/home/initCron.sh" # --- Wait for Shutdown --- echo "Server is running, waiting for SIGTERM" +tail -f /home/steam/log/console/gmodserver-console.log & while [ "$IS_RUNNING" = "true" ] do sleep 1s done echo "entrypoint stopped" -exit 0 \ No newline at end of file +exit 0