fix: console log to container log

This commit is contained in:
Lucas Briese 2023-12-04 11:49:27 +01:00
parent 6c8b09438e
commit 494e55c95a

View File

@ -59,7 +59,7 @@ function stopServer() {
IS_RUNNING="false" IS_RUNNING="false"
echo "done!" echo "done!"
} }
./"$SERVER_EXECUTABLE" start & ./"$SERVER_EXECUTABLE" start
trap stopServer SIGTERM trap stopServer SIGTERM
#start cron #start cron
@ -71,9 +71,10 @@ bash "/home/initCron.sh"
# --- Wait for Shutdown --- # --- Wait for Shutdown ---
echo "Server is running, waiting for SIGTERM" echo "Server is running, waiting for SIGTERM"
tail -f /home/steam/log/console/gmodserver-console.log &
while [ "$IS_RUNNING" = "true" ] while [ "$IS_RUNNING" = "true" ]
do do
sleep 1s sleep 1s
done done
echo "entrypoint stopped" echo "entrypoint stopped"
exit 0 exit 0