Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jul 2002 13:12:11 +1000
From:      Edwin Groothuis <edwin@mavetju.org>
To:        Grant Cooper <grant.cooper@nucleus.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: log files
Message-ID:  <20020722031211.GB2730@k7.mavetju>
In-Reply-To: <009901c2312c$b5c6ec70$2afececd@TCOOPER>
References:  <200207212214.g6LMEQxc000099@labs.unixhideout.com> <000001c23109$09c55830$0a01a8c0@athlon> <20020722024119.GA2730@k7.mavetju> <009901c2312c$b5c6ec70$2afececd@TCOOPER>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jul 21, 2002 at 09:06:00PM -0600, Grant Cooper wrote:
> I think I made a boo boo. I deleted all the files from var/log thinking I
> would have clean logs. Well, I rebooted but some of the files never
> reapeared. I made a back up just in case.

man syslogd:
     For security reasons, syslogd will not append to log files that do not
     exist; therefore, they must be created manually before running syslogd.

So the easiest way is:
    touch `cat /etc/syslog.conf  | awk '{ print $2}' | grep var`

and restart syslogd:
    kill -HUP `cat /var/run/syslogd.pid`

> Can I expect any problems in the future?

You're not logging anything.

Edwin

-- 
Edwin Groothuis      |            Personal website: http://www.MavEtJu.org
edwin@mavetju.org    |    Weblog: http://www.mavetju.org/weblog/weblog.php 
bash$ :(){ :|:&};:   | Interested in MUDs? http://www.FatalDimensions.org/

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?20020722031211.GB2730>