EMail on unexpected reboot

From: Dan Mahoney (Ports) <freebsd_at_gushi.org>
Date: Wed, 15 May 2024 08:43:01 UTC
Hey there all,

Is there something in the standard rc() structure that detects an unclean reboot and can take an action on it, like sending an email?

I’m not so interested in saving a core file or anything like that, just that some machines reboot so fast that the usual monitoring can miss it.

Thoughts welcome.

-Dan
(Will be at BSDCan, say Hi, I’ve got blue hair).