Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Mar 2001 00:25:38 -0800
From:      "Crist J. Clark" <cjclark@reflexnet.net>
To:        TOPCAT CONSULTING <topcat@sk.sympatico.ca>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: log rotation question
Message-ID:  <20010303002538.I89396@rfx-216-196-73-168.users.reflex>
In-Reply-To: <3AA072C4.A4E7725D@sk.sympatico.ca>; from topcat@sk.sympatico.ca on Fri, Mar 02, 2001 at 10:27:49PM -0600
References:  <3AA072C4.A4E7725D@sk.sympatico.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 02, 2001 at 10:27:49PM -0600, TOPCAT CONSULTING wrote:
> 
> How does one *force* a rotation of /var/log/messages ?

Not sure exactly what you mean but,

  # cd /var/log
  # mv messages messages.old && \
  touch messages && \
  kill -HUP `cat /var/run/syslog.pid`

Will start a fresh file for you.
-- 
Crist J. Clark                           cjclark@alum.mit.edu

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?20010303002538.I89396>