mirror of
https://github.com/DerTyp7/glassminers-server-docker.git
synced 2025-10-28 12:22:15 +01:00
Log server log docker container
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user