anacron question

View: New views
2 Messages — Rating Filter:   Alert me  

anacron question

by Phil-22 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you for reading this.

I have a standard Mandriva system that uses anacron to periodically
compress various log files. I'd like to exclude /var/log/messages from this
compressing process. How can I achieve this?

It looks like anacrontab is the answer but I'm still unsure how this
configuration file works.
 
--
Regards,
Phil

Re: anacron question

by David Guntner-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Phil grabbed a keyboard and wrote:
> Thank you for reading this.
>
> I have a standard Mandriva system that uses anacron to periodically
> compress various log files. I'd like to exclude /var/log/messages
> from this compressing process. How can I achieve this?

You enjoy having your log suck up all your disk space? :-)

> It looks like anacrontab is the answer but I'm still unsure how this
> configuration file works.

The anacron process is used on machines that aren't on 24/7, since cron
takes care of those.  Anacron will run past-due tasks due to the system
having been off, when the machine is turned back on.

One of the jobs that cron runs is the log rotator.  Check the files in
/etc/logrotate.d - one of them will have the specification for
/var/log/messages in it.  Comment that out, and presto - in enough time
your hard drive will be full! :-)  Or at least your /var partition if
you've set up more than one.

           --Dave



signature.asc (267 bytes) Download Attachment