Email on reboot

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


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.

Charles
 
-- 
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: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070814/8f5f5c73/attachment.sig>


More information about the ubuntu-users mailing list