From owner-freebsd-questions@FreeBSD.ORG Fri Jan 14 00:31:23 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 49413106566C for ; Fri, 14 Jan 2011 00:31:23 +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 CCEBD8FC15 for ; Fri, 14 Jan 2011 00:31:22 +0000 (UTC) Received: by fxm16 with SMTP id 16so2370668fxm.13 for ; Thu, 13 Jan 2011 16:31:21 -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=u1WCR/gvSpWAhzQQkrVyk3FcLf0KteL3/UuhJ+yNeXk=; b=M63py2BHKaChQxscai3dHdFLQB8VICYCwgsRe4R1VQpYyg+dkAAAIgUj4nD0NODq5/ CBDzObYiuJeuOWE0QDZLpHwXaIFzn6LSKIR+4IS/qZa5NnrI1pZ3Cs0iQ35m8QLGPbEn JqQmfs3muRgIB/gBnwc2/rc47ZRXb09EkYv2Y= 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=D2Aix/vHR5zXziKx7oy4WK59mpjJFbpELNrWLbfkkZ7JcjaXZBRfFoeAnq0CXqpPyX VnE/DHqLyJx+yc13GNTXc/SVuPpsy0ANuxmmExG4gLdVaDUQgTlajbW01cGKHDK5vuKD LTSbeCwkOKr1O/VC45TmmGS/vpcnQSlQmF1aA= MIME-Version: 1.0 Received: by 10.223.71.197 with SMTP id i5mr43030faj.127.1294965081527; Thu, 13 Jan 2011 16:31:21 -0800 (PST) Received: by 10.223.114.4 with HTTP; Thu, 13 Jan 2011 16:31:21 -0800 (PST) In-Reply-To: <201101140028.p0E0SODG029203@mail.r-bonomi.com> References: <201101140028.p0E0SODG029203@mail.r-bonomi.com> Date: Thu, 13 Jan 2011 18:31:21 -0600 Message-ID: From: Adam Vande More To: Robert Bonomi Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: questions@freebsd.org 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: Fri, 14 Jan 2011 00:31:23 -0000 On Thu, Jan 13, 2011 at 6:28 PM, Robert Bonomi wrote: > > From: Adam Vande More > > > > 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. > > FALSE TO FACT, with regard to any/all files that syslogd(8) uses, > _unless_ syslogd is invoked with the '-C' option. > > Quoting from the manpage: > "For security reasons, syslogd will not append to log files that do not > exist (unless -C option is specified); therefore, they must be created > manually before running syslogd." > Wrong, read what I said again. The appropriate service recreates the log file. Any basic system log would be covered by this. Try it and see. -- Adam Vande More