Email on reboot

Charles philip Chan cpchan at
Tue Aug 14 17:34:28 UTC 2007

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.

Spiritual leadership should remain spiritual leadership and the temporal
power should not become too important in any church.
		-- Eleanor Roosevelt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <>

More information about the ubuntu-users mailing list