Package: coreutils
Version: 8.23-4

I am running "tail -f --retry /var/log/messages" in a terminal
for >10 days. Since inotify is available the --max-unchanged-stats
option is not set, as recommended in the man page.

Problem: tail ignored the log file rotation last weekend. lsof -p
shows that it is watching /var/log/messages.1 now:

% lsof -p 2905
COMMAND  PID    USER   FD   TYPE DEVICE SIZE/OFF      NODE NAME
tail    2905 hdunkel  cwd    DIR   0,40    20480 189573782 /home/hdunkel
tail    2905 hdunkel  rtd    DIR  259,0     4096         2 /
tail    2905 hdunkel  txt    REG  259,0    64232    657851 /usr/bin/tail
tail    2905 hdunkel  mem    REG  259,0  1738176   1724334 
/lib/x86_64-linux-gnu/libc-2.19.so
tail    2905 hdunkel  mem    REG  259,0   140928   1724331 
/lib/x86_64-linux-gnu/ld-2.19.so
tail    2905 hdunkel    0u   CHR  136,1      0t0         4 /dev/pts/1
tail    2905 hdunkel    1u   CHR  136,1      0t0         4 /dev/pts/1
tail    2905 hdunkel    2u   CHR  136,1      0t0         4 /dev/pts/1
tail    2905 hdunkel    3r   REG  259,0   141711    264950 /var/log/messages.1
tail    2905 hdunkel    4r  0000   0,11        0      8294 anon_inode

Obviously the inotify support did not work for renamed
files.


Regards
Harri

Reply via email to