Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Aug 1999 13:42:00 -0500
From:      "Alejandro Ramirez" <ales@megared.net.mx>
To:        <jesusr@ncsa.es>, "Lane Covington, Distance Education/Multi-Media Specilist" <covingtl@mcc.montgomery.cc.nc.us>
Cc:        <faq@FreeBSD.ORG>, <questions@FreeBSD.ORG>
Subject:   RE: How to reset the log file in free-bsd.
Message-ID:  <006501bee9a9$5b876fa0$d4630a0a@megared.net.mx>
References:  <XFMail.990818201434.jesusr@ncsa.es>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

    If you just want to clean up your file without deleting the file or
having to kill the process, you coul try the following "cat /dev/null >
httpd-access.log" and your file will be 0 length and working.

Ales

----- Original Message -----
From: Jesus Rodriguez <jesusr@ncsa.es>
To: Lane Covington, Distance Education/Multi-Media Specilist
<covingtl@mcc.montgomery.cc.nc.us>
Cc: <faq@FreeBSD.ORG>; <questions@FreeBSD.ORG>
Sent: Wednesday, August 18, 1999 1:14 PM
Subject: RE: How to reset the log file in free-bsd.


>
> On 18-Aug-99 Lane Covington, Distance Education/Multi-Media Specilist
wrote:
> > I have a really large 85meg  httpd-access.log file.  How do I reset this
> > log file after I have moved the file with mv httpd-access.log
> > http-access.old and then compressed it.  But could not determine how to
> > signal free-bsd a process id with the kill -TERM 'cat httpd.pid' to
> > start a new file.  Did not see any reference to this in the handbooks.
> > Could you reply please.
> > Lane, Distance Education Tech
>
> Please, send this kind of questions to freebsd-questions@freebsd.org
(included
> now with CC).
>
> Thanks
> JesusR.
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message




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?006501bee9a9$5b876fa0$d4630a0a>