I have configured logrotate to rotate only when the log file size is beyond a certain limit.Some logrotate definitions have postrotate scripts which seem to run every time logrotate is invoked, no matter if the log file in question has been rotated or not.Thus there is some processing going on even though logrotate does not need to change the log file.Is there a way to skip the postrotate part if the log file has not been rotated?
can logrotate skip postrotate script if no log rotation took place?
logrotate