boot up notification

Gustavo De Nardin gustavodn at gmail.com
Fri Jan 14 13:52:00 PST 2005


Jim Pazarena wrote:
> I would like one of my servers to send me an email when
> it boots. I envision a script in rc.conf to do this.
> 
> Is there an easier way, or an automatic system which can do this?

  You could set up a cronjob to run at '@reboot':
$ crontab -l
@reboot echo | mail -s "The eagle has landed" root

  See crontab(5).


More information about the freebsd-questions mailing list