jonty-comp/iceking

What happens when the logs rotate?

Closed this issue · 1 comments

Since I've only just written and started testing this script, I have no idea what will happen when the daily logrotate is called. I get the feeling that since Python is looking at the file descriptor, it will carry on looking at the old log and not start watching the new one. I might need to set up some kind of inotify event when the file is moved to tell the main loop to close and re-open the file descriptor.

The method is a bit hacky, but it copes with this now.