Files
docker-mods-uptime-kuma-tim…/root/etc/services.d/stdout-logs/run
T
Bryce Chidester dedfeaca08 [universal-stdout-logs] Use tail -F to follow rotated log files
I appreciate this mod for keeping an eye on nginx logs and such. The lsio/swag rotates those log files daily, and unfortunately that causes this mod to stop working. I propose using tail's `-F` (a shortcut for `--follow=name --retry`) instead of `-f` so that this mod will continue tailing the newly-rotated log file.
2022-07-11 09:54:41 -07:00

7 lines
142 B
Plaintext

#!/usr/bin/with-contenv bash
TAIL_LOGS=$(echo "$LOGS_TO_STDOUT" | sed 's#|# -f #g')
echo "Executing: tail -F $TAIL_LOGS"
tail -F $TAIL_LOGS