From owner-freebsd-questions@FreeBSD.ORG Thu Jan 13 07:20:16 2011 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49C75106566C for ; Thu, 13 Jan 2011 07:20:16 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id CF4D48FC18 for ; Thu, 13 Jan 2011 07:20:15 +0000 (UTC) Received: by fxm16 with SMTP id 16so1461421fxm.13 for ; Wed, 12 Jan 2011 23:20:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=eJVpXvK5KnVPEXLVSqoegbOVHNyE2fF1O6b8Xs5Be5E=; b=rRV934HUKCIoSMKg3mpq47eotHxnp6RDMdYTSUGRzKnc0Ua/C+yWaap2JE+w1LZknN hrp1MMfJ5+JX3lNa91FBLGc+EFfxMvycX56vdN1FK1ADxn8SyUyD2WTUbTPRyuJ4p2/F FUSJHrWKifnIr/uq0w5xId8smJ5cBX751auyI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=lh0QCkB5R5f5wafF1dgaaydq5EitlPmK64oqBog/5luSldWKUgEiD+TDT4BGpaC0pV e3czi6fy8fE2v0nB/F0nZRZCpo3zIYj8WiXkWr7dM5Ifj561B+QFQTu9cCUAn9FiTqT1 vZHTWgkCo2VmxHcgzu4e0WPkObaKhBca8wCSA= MIME-Version: 1.0 Received: by 10.223.71.197 with SMTP id i5mr1942645faj.127.1294903214690; Wed, 12 Jan 2011 23:20:14 -0800 (PST) Received: by 10.223.114.4 with HTTP; Wed, 12 Jan 2011 23:20:14 -0800 (PST) In-Reply-To: References: <4D2DFEAE.9060403@bah.homeip.net> Date: Thu, 13 Jan 2011 01:20:14 -0600 Message-ID: From: Adam Vande More To: Redd Vinylene Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: questions , Bernt Hansson Subject: Re: Simple command to reset / clear all logs? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2011 07:20:16 -0000 On Wed, Jan 12, 2011 at 1:50 PM, Redd Vinylene 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