[ic] logrotate

Jon Jensen interchange-users@icdevgroup.org
Fri Dec 13 17:38:01 2002


On Fri, 13 Dec 2002, Grant wrote:

> I know this may be more of a RedHat question, but I'm trying to get the IC
> logs to rotate with the following in my crontab:
> 
> 0 7 * * * logrotate
> /usr/local/psa/home/vhosts/trippystore.com/logrotate.cfg+
> 
> and the following in my logrotate.cfg:
> 
> errors my@email.com
> 
> ~/catalogs/*/error.log ~/catalogs/*/logs {
>         rotate 7
>         weekly
>         endscript
> }
> 
> ~/catalogs/
> 
> Nothing is happening, and I suspect some king of a syntax error.

I doubt the '~' shortcut for home directories is valid in logrotate config 
files. Try using the full pathname instead.

The other thing is that you can test your settings by running 'logrotate' 
directly from the command line. Then once that works, use the same 
invocation in cron.

Jon