Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Jun 2012 07:19:31 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        "Randal L. Schwartz" <merlyn@stonehenge.com>
Cc:        FreeBSD - <freebsd-questions@freebsd.org>
Subject:   Re: find date of last boot
Message-ID:  <4FD19973.5040802@infracaninophile.co.uk>
In-Reply-To: <86ipf276g7.fsf@red.stonehenge.com>
References:  <4FD1360D.1060208@a1poweruser.com> <alpine.BSF.2.00.1206072110350.67420@tripel.monochrome.org> <4FD15461.6090109@makeworld.com> <86obou7fly.fsf@red.stonehenge.com> <5E0240CD-6B6C-4221-A656-0006254132F9@mac.com> <86ipf276g7.fsf@red.stonehenge.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig78624A2F9D51F8EE869FA27F
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 08/06/2012 05:50, Randal L. Schwartz wrote:
> Sure, but the question was likely involving a stock system, so yes, you=
r
> mileage may vary, but let's consider a solution that works for a defaul=
t
> system.  "last reboot" isn't it.

It's not that.  'last reboot' seems to be broken at the moment, at least
on stable/9:

lucid-nonsense:~:% uname -a
FreeBSD lucid-nonsense.infracaninophile.co.uk 9.0-STABLE FreeBSD
9.0-STABLE #15 r236465: Sat Jun  2 23:14:59 BST 2012
root@lucid-nonsense.infracaninophile.co.uk:/usr/obj/usr/src/sys/LUCID-NON=
SENSE
 amd64

I rebooted a few days ago:

lucid-nonsense:~:% uptime
 7:14AM  up 3 days,  8:18, 1 user, load averages: 0.03, 0.01, 0.01

And the utx.log file was last rotated over a week ago:

lucid-nonsense:~:% ls -la /var/log/utx*
-rw-r--r--  1 root  wheel    394 Jun  7 17:51 /var/log/utx.lastlogin
-rw-r--r--  1 root  wheel  16841 Jun  8 07:06 /var/log/utx.log
-rw-r--r--  1 root  wheel  24878 May 31 22:41 /var/log/utx.log.0
-rw-r--r--  1 root  wheel  13741 Apr 30 08:50 /var/log/utx.log.1
-rw-r--r--  1 root  wheel  27886 Mar 31 22:52 /var/log/utx.log.2

but last(1) isn't coming up with the goods:

lucid-nonsense:~:% last reboot

wtmp begins Fri Jun  1 06:14:46 BST 2012

(nor does it work if I tell last to use the older utx.log files)

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew@infracaninophile.co.uk               Kent, CT11 9PW




--------------enig78624A2F9D51F8EE869FA27F
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/RmXMACgkQ8Mjk52CukIwDPwCfZxxd3owiUBZqFHsMukxAU/Dq
3r4An1XfHUh7rvZfNMVk0VXl9ttr8tq9
=dA2e
-----END PGP SIGNATURE-----

--------------enig78624A2F9D51F8EE869FA27F--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FD19973.5040802>