this is a follow up question of my previous question
So I have this shellscript to monitor a nginx log file on Gentoo, the problem is the log file were renamed and gziped after certain file size or period of time, the shellscript still looking up the original file-descriptor(or inode?), the new file content won't show up.
My question is, how to hook into the auto-gzip script to have my log file monitor script restarted to monitor the new logfile?
BTW Please don't do it using cronjob or using a timer. I want a near real-time response of my monitor script.