On Tue, Feb 20, 2007 at 09:24:55AM -0800, Nelson Minar wrote:
> I just got hit by this bug too. In my case, ntop left behind a file in
> logrotate.d:
>
> error: error accessing /var/log/ntop: No such file or directory
> error: ntop:1 glob failed for /var/log/ntop/*.log
>
> While I understand that ntop is buggy for having left this logrotate config
> file in place, there's a design flaw in logrotate too. Just because it can't
> rotate the logs for one package doesn't mean it should stop rotating logs for
> all packages.
This ought to be working in 3.7.1 if the missingok directive has been given
before the glob occurs in the configuration file in /etc/logrotate.d/
if (rc == GLOB_ABORTED) {
if(newlog->flags & LOG_FLAG_MISSINGOK)
continue;
message(MESS_ERROR, "%s:%d glob failed for %s\n",
configFile, lineNum, argv[argNum]);
return 1;
}
Alternatively, "missingok" could be put in /etc/logrotate.conf.
--
Paul Martin <[EMAIL PROTECTED]>
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]