Email on reboot
Brian Fahrlander
brian at fahrlander.net
Tue Aug 14 17:53:14 UTC 2007
Charles philip Chan wrote:
> Bart Silverstrim <bsilver at chrononomicon.com> writes:
>
>> Is there a best-practices recommended way to have a 7.04 ubuntu server
>> email a specific address if it reboots or is restarted? Emailing output
>> from dmesg or a system log at boot time would be nice, but as long as
>> there was some notification of the restart with a timestamp it would be
>> useful.
>
> I would put something like this:
>
>
> ,----
> | dmesg | mailx -s "System Rebooted" <email_address>
> `----
>
> in /etc/rc.local.
Yeah, but that won't fit in a pager display. :>
--
------------------------------------------------------------------------
Brian Fahrländer Christian, Conservative, and Technomad
Evansville, IN http://Fahrlander.net/brian
ICQ: 5119262 AOL/Yahoo/GoogleTalk: WheelDweller
------------------------------------------------------------------------
More information about the ubuntu-users
mailing list