Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jun 2011 21:43:15 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        John <jwd@slowblink.com>
Cc:        freebsd-rc@freebsd.org
Subject:   Re: Downtime report rc script?
Message-ID:  <B86A50BB-107B-4BD0-A361-D91610E74B4B@bsdimp.com>
In-Reply-To: <20110614032343.GA96959@FreeBSD.org>
References:  <20110614032343.GA96959@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

man last(1).  You might need to tweak the newsyslog retention time for the files...

Warner

On Jun 13, 2011, at 9:23 PM, John wrote:

> 
> Hi Folks,
> 
>   I'm trying to put together a simple to report at boot time how
> long the system was down.
> 
>   The script itself isn't really a problem, but I'm coming up short
> looking for a reliable way to determine exactly when the sytem
> went down regardless of whether it was a clean reboot or a crash.
> 
>   Am I missing something simple? I've thought about writing a simple
> little program to touch a file once per second invoked by the downtime
> rc script after querying the last time the file was touched... but
> there must be a simpler solution.
> 
>   Thoughts?
> 
> Thanks,
> John
> 
> _______________________________________________
> freebsd-rc@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-rc
> To unsubscribe, send any mail to "freebsd-rc-unsubscribe@freebsd.org"
> 
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B86A50BB-107B-4BD0-A361-D91610E74B4B>