Downtime report rc script?
Warner Losh
imp at bsdimp.com
Tue Jun 14 03:47:24 UTC 2011
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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-rc
> To unsubscribe, send any mail to "freebsd-rc-unsubscribe at freebsd.org"
>
>
More information about the freebsd-rc
mailing list