Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jan 2011 01:20:14 -0600
From:      Adam Vande More <amvandemore@gmail.com>
To:        Redd Vinylene <reddvinylene@gmail.com>
Cc:        questions <questions@freebsd.org>, Bernt Hansson <bernt@bah.homeip.net>
Subject:   Re: Simple command to reset / clear all logs?
Message-ID:  <AANLkTimrKnqKT8fXdq9pN28cY=7K9jcrtJoHj1HLDMAg@mail.gmail.com>
In-Reply-To: <AANLkTi=bbT7d=FvFHFpWpZgXb_cHgNGaa_ZS%2BSdWxXua@mail.gmail.com>
References:  <AANLkTimMvTxsdRXhxzXwjdTDzQ5U7m7kzVc0orGwxM5U@mail.gmail.com> <4D2DFEAE.9060403@bah.homeip.net> <AANLkTi=bbT7d=FvFHFpWpZgXb_cHgNGaa_ZS%2BSdWxXua@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 12, 2011 at 1:50 PM, Redd Vinylene <reddvinylene@gmail.com>wrote:

> Will the logs automatically create themselves? I mean, I picture I have to
> manually touch a lotta them in order to avoid "cannot find" error messages?
>

Please don't top post.

do something like this:

shutdown now
rm /var/log/*
exit

upon reentering multiuser mode, each logging service will create it's new
file.  Typically if a service is running and you delete the log from it, the
service will not like it.  You can HUP the service to have it restart
logging, but you'd have to do it manually for each log you deleted.

-- 
Adam Vande More



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimrKnqKT8fXdq9pN28cY=7K9jcrtJoHj1HLDMAg>