[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.
This commit is contained in:
Bryce Chidester 2022-07-11 09:54:41 -07:00 committed by GitHub
parent b18f779a96
commit dedfeaca08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,5 +2,5 @@
TAIL_LOGS=$(echo "$LOGS_TO_STDOUT" | sed 's#|# -f #g')
echo "Executing: tail -f $TAIL_LOGS"
tail -f $TAIL_LOGS
echo "Executing: tail -F $TAIL_LOGS"
tail -F $TAIL_LOGS