Email on reboot

Bart Silverstrim bsilver at
Tue Aug 14 18:42:54 UTC 2007

Brian Fahrlander wrote:
> Charles philip Chan wrote:
>> Bart Silverstrim <bsilver at> 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.  :>

True, but not using Pager right now :-)

After a quick reconfigure of exim (don't ask, didn't even need it until 
now...) it appears to be workin' like a champ.  I didn't want to try 
sticking something into rc.local if there was some already automated way 
of telling Ubuntu to notify me of such events.

Thank you!


More information about the ubuntu-users mailing list