incron problem
I am using incron to monitor the /var/log/auth.log file with the incrontab -e parameter below. incron is firing the icronBanSSH.sh correctly however, when an access_log is rolled over and compressed and a new empty access_log is created, incron no longer fires cronBanSSH.sh. It is as if incron looses track of the (new) empty access_log. Has anyone had this problem? If I go and do a incrontab -e and modify the incron file, it starts firing again. I guess I could kill and restart incron when I detect a new access_log file has been created, but this seems to be a bug in incron.
/var/log/auth.log IN_MODIFY /etc/SSH404Block/icronBanSSH.sh
Any other suggestions?
Thanks.
|