Log server log docker container

This commit is contained in:
2025-08-22 22:40:46 +02:00
parent 6429ab3e94
commit 12cdadfa14

View File

@@ -40,7 +40,8 @@ trap 'clean_up; exit 0' SIGTERM
echo "[Info] Max number of logs set to $MAX_LOGS"
echo "[Info] Server is starting at [$TIMESTAMP]"
$EXEC >"$LOG_DIR/latest.log" &
$EXEC | tee "$LOG_DIR/latest.log" &
SERVER_PID=$!
wait $SERVER_PID
@@ -49,4 +50,4 @@ EXIT_STATUS=$?
clean_up
echo "[Info] Server stopped at [$(date +"$LOG_DATE_FORMAT")] with exit code: $EXIT_STATUS"
sleep 5
sleep 5