We have the following pronblem. Once in a while, our application server spits out an empty logfile or (when it's in the weekend), there is no logfile at all.
We use logrotate for managing these logfiles and in both cases, we want logrotate to skip trying to rotate the empty or non-existing logfiles, since it is cluttering out rt-ticket bin and Nagios, since logrotate barfs at me in such a case.
Is there any way to do this in logrotate (of course I can write a script that does exactly that (skipping the empty and non-existing onces_, but that's not my question)