clear /var/log/messages

Andrew Mathews andrew_mathews at linux-works.org
Mon Jan 3 04:04:16 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jim wrote:
| any way of clearing out the file or backing it up once a week so you
| could start with a new log ?
|

This should already be happening.
man logrotate
There should be an entry in /etc/cron.daily/ for logrotate to happen
automatically. Check your /etc/logrotate.conf for the mechanism being
used, such a gzip or actual deletion and retention periods, and
/etc/logrotate.d/ for the specific files it's working with.

- --
Andrew Mathews
- ----------------------------------------------------------------
20:58:04 up 2 days Fedora Core release 2 (Tettnang)
- ----------------------------------------------------------------
QOTD:
	Money isn't everything, but at least it keeps the kids in touch.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org

iD8DBQFB2MQ+Nm+zlJsY50cRAk8+AJsH8E4rNrIWcjsKnd/OW8Ex5OxeaACeNlgP
Kao7f1H8fwRNKJT6uut5bsg=
=W3rN
-----END PGP SIGNATURE-----

All information contained in this email is confidential and may be used by the intended recipient only.




More information about the users mailing list