On 2006-02-07 05:07:39 -0600 (Tue, Feb), Harry Putnam wrote:
> I get this recurring error from /usr/sbin/run-crons.  From logrote.
> But cannot quite see why it throws this error:
> 
>   error: stat of /home/reader/t/var/log/fw_log failed: \
>     No such file or directory
> 
> Well its true, there is no such file but my settings should cause
> logroate to `create' it, and it does not get created.
> 
> 
> The section of logrotate.con dealing with that is belwo, is it wrong
> in some way?
> 
>  /home/reader/t/var/log/fw_log {
>    create 0600 reader users
>    size=3000k
>    rotate 15
>    compress
> }

First - does the DIRECTORY exist? Logrotate will not create directories.

Second - you may want to use 'missingok' directive - this will prevent
raising an error. 'create' directive means - 'after rotation, create
new one' but does not mean - 'create if the file does not exist'

-- 
No virus found in this outgoing message.
Checked by "grep -i virus $MESSAGE"
Trust me.

Attachment: pgpBfOYK1Jm5A.pgp
Description: PGP signature

Reply via email to