find date of last boot

Michael Sierchio kudzu at tenebras.com
Fri Jun 8 02:47:28 UTC 2012


On Thu, Jun 7, 2012 at 7:34 PM, Polytropon <freebsd at edvax.de> wrote:

> Maybe introducing something along the /etc/rc execution?
> An /etc/rc.local entry like
>
>        /bin/date "+%Y-%m-%d %H:%M:%S" > /var/log/thisboot.log
>
> and then just look at the file. Requires at least one reboot
> to take effect. :-)
>

You could just put the following in /etc/rc.local

date

and it would be retained in /var/run/dmesg.boot


More information about the freebsd-questions mailing list