From owner-freebsd-questions Sun Mar 31 17:59:51 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id C392E37B41D for ; Sun, 31 Mar 2002 17:59:46 -0800 (PST) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.12.2/8.12.2) with ESMTP id g311xjhd091043; Sun, 31 Mar 2002 19:59:46 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.2/8.12.2/Submit) id g311xjp5091042; Sun, 31 Mar 2002 19:59:45 -0600 (CST) Date: Sun, 31 Mar 2002 19:59:45 -0600 From: Dan Nelson To: Richard Cc: "freebsd-questions@FreeBSD.ORG" Subject: Re: Why the last logs always restart Message-ID: <20020401015945.GD44037@dan.emsphone.com> References: <200204010134.g311Ym863181@sydmail3.telpacific.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200204010134.g311Ym863181@sydmail3.telpacific.com.au> User-Agent: Mutt/1.3.28i X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Apr 01), Richard said: > I have a web server based on Freebsd 4.5. I found a problem that the > last log always restart. When I enter command last today, it comes > out wtmp begins Mon Apr 1 05:36:59 CST 2002 > > This happens frequently, and i didnot reboot the system or clear any > logs. Also, there are not many people using this server, the log is > not long at all. > > I have another Freebsd machine in my home, but not connect to the > internet. This never happens and I can still see the last log a year > ago. Different versons of FreeBSD rotate the wtmp file at different rates, and in different places. Sometimes it's done in /etc/newsyslog, sometimes in /etc/periodic/monthly/200.accounting. Older copies of wtmp should be named /var/log/wtmp.# -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message