For logrotate
d files one usually uses tail -F
instead of tail -f
to follow the log file contents. Does multitail(1)
automatically follow the name instead of the inode (which likely changes with the log rotation)?
I sifted through the documentation and also searched on the web, but wasn't able to come up with a conclusive answer.
Thanks to the accepted answer I found that the man
page does mention the option I wanted, but uses the term "descriptor" instead of "inode". So this question and the answer should be the glue for the next person researching the topic.
-f Follow the following filename, not the descriptor.
--follow-all
For all files after this switch: follow the following filename, not the descriptor.
Best Answer
According to the
multitail
manual:To me, this implies that by default it follows by
inode
/ file descriptor rather than filename.A cursory reading of the source bears this out; in
exec.c:79
, thefollow_filename
var (set incmdline.c:889
orui.c:966
) defines whether the follow-by-filename flag (-F
,--follow=name
, etc.) is passed totail
.