[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: logrotate stopped working ?



Thanks Ian,

It gave me:

error: error accessing /var/log/squid: No such file or directory
error: squid:4 glob failed for /var/log/squid/*.log
Exit 1

I found out I had a 'squid' file in logrotate.d directoty. Silly me !

Thanks a lot for your help !

--Stéphane


-----Original Message-----
From: Ian Greenhoe [mailto:ihgreenman@yahoo.com] 
Sent: Monday, March 07, 2005 12:14 PM
To: Provost, Stephane
Cc: 'debian-laptop@lists.debian.org'
Subject: Re: logrotate stopped working ?

Actually, there should be an entry in cron.daily:
/etc/cron.daily/logrotate

Mine looks like this:
--------------- begin 755 /etc/cron.daily/logrotate
#!/bin/sh

test -x /usr/sbin/logrotate || exit 0
/usr/sbin/logrotate /etc/logrotate.conf
--------------- end 755 /etc/cron.daily/logrotate

More likely, tho, you've got something foobar'd in /etc/logrotate.conf
-- try running the logrotate command from /etc/cron.daily/logrotate
manually and see what happens.

HTH,
-Ian

On Mon, 2005-03-07 at 11:59 -0800, Provost, Stephane wrote:
> Hello everyone,
> 
>  
> 
> I'm puzzled here. Logrotate stopped working and I don't know why. If I
> force the process, such as "logrotate -f /etc/logrotate.d/apache" ,
> it's fine and dandy. Should logrotate be called from within cron
> jobs ? aka should there be a "logrotate" entry in the cron.weekly
> directory ?
> 
>  
> 
> What am I missing here ?... TIA !
> 
>  
> 
> --Stéphane
> 
>  
> 
>  
> 
> 



Reply to: