Is there a feature in the GUI to send an email on shutdown or reboot? I noticed that the UPS options do allow for sending an email, but I don't think it would trigger if I did a 'shutdown -h now' or 'reboot' command.
I'm just looking to have a FreeNAS server send a simple email of its impending shutdown or reboot when a shutdown or reboot is triggered for any reason. I'm thinking something along the lines of a small script that will execute as part of the shutdown process.
Any ideas how to do this? Or a pointer in the direction so I can figure it out on my own?
Thanks.
Edit: What about the opposite too. I'd like an email when a FreeNAS server is booting up.
I'm just looking to have a FreeNAS server send a simple email of its impending shutdown or reboot when a shutdown or reboot is triggered for any reason. I'm thinking something along the lines of a small script that will execute as part of the shutdown process.
Any ideas how to do this? Or a pointer in the direction so I can figure it out on my own?
Thanks.
Edit: What about the opposite too. I'd like an email when a FreeNAS server is booting up.