Date: Thu, 13 Jan 2011 18:31:21 -0600 From: Adam Vande More <amvandemore@gmail.com> To: Robert Bonomi <bonomi@mail.r-bonomi.com> Cc: questions@freebsd.org Subject: Re: Simple command to reset / clear all logs? Message-ID: <AANLkTi=49Zopo0xCO=nOrf05DqNSV1k0P%2B%2Bf-G0XPZcA@mail.gmail.com> In-Reply-To: <201101140028.p0E0SODG029203@mail.r-bonomi.com> References: <AANLkTimrKnqKT8fXdq9pN28cY=7K9jcrtJoHj1HLDMAg@mail.gmail.com> <201101140028.p0E0SODG029203@mail.r-bonomi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 13, 2011 at 6:28 PM, Robert Bonomi <bonomi@mail.r-bonomi.com>wrote: > > From: Adam Vande More <amvandemore@gmail.com> > > > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=49Zopo0xCO=nOrf05DqNSV1k0P%2B%2Bf-G0XPZcA>