Categories
Linux Mastering Development

inotify – maintaining watch through log rollover

I have a inotifywait 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?

Categories
Linux Mastering Development

inotify – maintaining watch through log rollover

I have a inotifywait 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?

Categories
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?