From 494e55c95ad065b67149ce5245c32d064d8153e6 Mon Sep 17 00:00:00 2001 From: Lucas Briese Date: Mon, 4 Dec 2023 11:49:27 +0100 Subject: [PATCH] fix: console log to container log --- lgsm/entrypoint.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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