Ever wondered how long your system was down for while the techs were working on it? Whether your system crashed or was actually shut down?
Or just want to make sure you’re aware of reboots?
This script helps in two ways:
- It sends an email to a configurable email address when the system is shutdown or rebooted;
- It permanently logs shutdowns and reboots in /var/log/shutdowns
You can change the email notification target by editing the main script (not the best) or by creating a file in /etc/sysconfig/rebootnotify as in:
echo NOTIFYPERSONfirstname.lastname@example.org > /etc/sysconfig/rebootnotify
cp rebootnotify /etc/init.d chmod 755 /etc/init.d/rebootnotify chkconfig rebootnotify on
Once rebootnotify is installed you will be notified via email on every system reboot.Download rebootnotify [1095 downloads]