Date: Tue, 29 Aug 2000 17:59:52 +0930 From: Greg Lehey <grog@lemis.com> To: Ronald Klop <ronald@klop.yi.org> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: detecting reboot Message-ID: <20000829175952.K11422@wantadilla.lemis.com> In-Reply-To: <Pine.BSF.4.21.0008291002010.415-100000@dlanor.evertsen.nl>; from ronald@klop.yi.org on Tue, Aug 29, 2000 at 10:06:54AM %2B0200 References: <Pine.BSF.4.21.0008291002010.415-100000@dlanor.evertsen.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday, 29 August 2000 at 10:06:54 +0200, Ronald Klop wrote: > How do I detect in a script in /usr/local/etc/rc.d that the machine just > rebooted in stead of going to single-user and back to multi-user. > > In the login-log (last | head) is no difference between the two > situations. And looking at an uptime of 0 days is not really accurate, > because a shutdown more times a day is possible. Right, but an uptime of less than a minute probably means that you've just rebooted. Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers 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?20000829175952.K11422>