mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-03-23 00:05:28 +08:00
[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:
parent
b18f779a96
commit
dedfeaca08
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user