Add -c0 flag to prevent showing stale log entries in the log as the container starts

This commit is contained in:
Matt Alexander
2024-02-23 05:14:22 -06:00
committed by GitHub
parent cfb7dc6fc9
commit 395db2c69d
@@ -2,8 +2,8 @@
if [ -n "${LOGS_TO_STDOUT}" ]; then
IFS='|' read -ra TAIL_LOGS <<< "$LOGS_TO_STDOUT"
echo "Executing: tail -F ${TAIL_LOGS[@]}"
tail -F "${TAIL_LOGS[@]}"
echo "Executing: tail -Fc0 ${TAIL_LOGS[@]}"
tail -Fc0 "${TAIL_LOGS[@]}"
else
echo "**** Env var LOGS_TO_STDOUT is not set, sleeping ****"
fi