On a long running system I usually have a terminal with
$ tail -f /var/log/kern.log
or something like this open.
But from time to time I have to restart such command because no new messages are displayed anymore.
I assume this is because of the log rotating job that has replaced the log file tail -f
was 'watching'.
How can I avoid this restarting issues?
Can I invoke tail
such that it notices the rotating process and does the right thing?
(I notice this issue on a Ubuntu 11.04 system that uses rsyslogd
by default.)