From owner-freebsd-questions Tue Aug 29 1: 7: 1 2000 Delivered-To: freebsd-questions@freebsd.org Received: from node11a94.a2000.nl (node11a94.a2000.nl [24.132.26.148]) by hub.freebsd.org (Postfix) with SMTP id C793737B423 for ; Tue, 29 Aug 2000 01:06:57 -0700 (PDT) Received: (qmail 22620 invoked from network); 29 Aug 2000 08:06:56 -0000 Received: from dlanor.evertsen.nl (10.0.0.3) by bak.evertsen.nl with SMTP; 29 Aug 2000 08:06:56 -0000 Date: Tue, 29 Aug 2000 10:06:54 +0200 (CEST) From: Ronald Klop To: freebsd-questions@freebsd.org Subject: detecting reboot Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, 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. Anybody has a clue? Greetings, Ronald. - -- Ronald Klop http://klop.yi.org/ http://www.FreeBSD.org/ http://klop.yi.org/~ronald/ PGP: http://klop.yi.org/~ronald/pgp.txt mailto:ronald@klop.yi.org?Subject=publicpgpkey -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use Charset: noconv iQA/AwUBOatvHxk9lWSXChWeEQJ5wQCfbl2NabciE13xX+7QgFznjE1zd+wAoKgA dCXypY3J/KhH/C0TeX1qzhp5 =AdDe -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message