summaryrefslogtreecommitdiff
path: root/changelog
diff options
context:
space:
mode:
authorDominguez Bonini, David <dominguez.d@ikusi.es>2009-10-30 15:24:20 +0100
committerTobias Klauser <klto@zhaw.ch>2009-10-30 15:27:31 +0100
commit727e55497fa03e9312c1e73bea005233aa03c8d6 (patch)
tree166b6b9ec123b859bf4b9e3593afec2fff06ca96 /changelog
parent3a7017f169c598356d406f5c941cb463536f5e11 (diff)
inotail: Support reopening rotated files
We changed the behaviour of the "follow" option so that it detects that file has been moved or deleted it keeps monitoring for the file instead of ignoring it. This is useful when tailing syslog circular logs, where syslog periodically moves the log to another filename and recreates the log file. Without the patch inotail would issue a "file has been moved" or a "file has been deleted message" and stop tracking the file. Now it will close the file and refresh the inotify +descriptor. When a notification arrives with a CREATE or MODIFY event, it will reopen the file and set the size to zero. We are using the patched program in an embedded ARM system with satisfactory results.
Diffstat (limited to 'changelog')
0 files changed, 0 insertions, 0 deletions