Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Sep 2000 23:44:13 -0700
From:      "Crist J . Clark" <cjclark@reflexnet.net>
To:        William Melanson <wjm@gate.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: /var/log/messages > gzip?
Message-ID:  <20000902234413.A62475@149.211.6.64.reflexcom.com>
In-Reply-To: <Pine.A41.4.21.0009030008330.69846-100000@inca.gate.net>; from wjm@gate.net on Sun, Sep 03, 2000 at 12:09:34AM -0400
References:  <Pine.A41.4.21.0009022359110.69846-100000@inca.gate.net> <Pine.A41.4.21.0009030008330.69846-100000@inca.gate.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 03, 2000 at 12:09:34AM -0400, William Melanson wrote:
> 
> Hello, 
> 
> Where might I find the script that gzip's sendmail's maillog on a daily
> basis? I'd like to tinker around with it whereas it can perform the same
> services to /var/log/messages.

See newsyslog(8). By default, it does archive messages, but rather
than daily, it does so when it reaches a certain size. Look at the
newsyslog.conf file to see the current configuration for newsyslog.

> Apparently /etc/periodic wants
> /var/log/messages to be gzip as well. These error messages: 
> "/var/log/messages.0*.gz: No such file or directory" are weighing heavily
> upon my patience :)

This is a different issue. It occurs in the /etc/security file which is
run out of /etc/periodic/daily/450.status-security.

The easiest way to get rid of it is just to,

  # touch /var/log/messages.0.gz

-- 
Crist J. Clark                           cjclark@alum.mit.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000902234413.A62475>