epike on Mon, 23 Dec 2002 18:30:33 -0500


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

Re: [PLUG] Testing logrotate


no i wouldnt do that.....
setup /etc/logrotate.conf and /etc/logrotate.d properly.
there are schedules in logrotate.d properly (weekly,daily,etc).

logrotate itself is already being called (somehow) by cron.

jondz


> 
> Cool! I got it working. Would you put the same entry in the crontab, for
> example.
> 
> 0 0 1 * * /usr/sbin/logrotate -f /etc/logrotate.conf
> 
> 
> TIA
> 
> Naresh
> 
> On Mon, 23 Dec 2002 epike@isinet.com wrote:
> 
> > logrotate -f /etc/logrotate.conf will do it, but it will
> > do a forced logrotation.  So if your schedule is weekly,
> > all those logs will rotate right now.
> >
> > I use this since I dont mind a forced rotation anyway.
> >
> > e pike
> >
> > >
> > > i have very large log files, so I decided to setup logrotate. I believe I
> > > set up everything up fine, and now I want to test it. What is the best way
> > > to do this, so I know its working.
> > >
> > > Thanks
> > > Naresh
> >
> > _________________________________________________________________________
> > Philadelphia Linux Users Group        --       http://www.phillylinux.org
> > Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
> > General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug
> >
> _________________________________________________________________________
> Philadelphia Linux Users Group        --       http://www.phillylinux.org
> Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
> General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug
> 

_________________________________________________________________________
Philadelphia Linux Users Group        --       http://www.phillylinux.org
Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug