Linux Mastering Development

inotify – maintaining watch through log rollover

I have a inotifywatch on syslog. It works without issue until the log rolls over.

Although the same filename is used, the new file is a new file and inotify loses its reference.

How do we compensate for this to maintain the watch through the log rollover?

Leave a Reply

Your email address will not be published. Required fields are marked *