On Tuesday 26 June 2007 08:54:39, "Gentoo Voyager" <[EMAIL PROTECTED]> wrote : > Dear all, > how to send automatic mail while halting the gentoo system. qmail server > running on my gentoo box. Maybe you can add a rc script to send an email at shutdown. For example : ===============/etc/init.d/notifyhalt======================== #!/sbin/runscript
EMAIL="[EMAIL PROTECTED]" depend () { need net } start () { return } stop () { ebegin "Notifying $EMAIL of rebooting the system" cat <<EOF | sendmail $EMAIL From: [EMAIL PROTECTED] Subject: System reboot The system is rebooting ! EOF eend $? } =================================================== Add it by rc-update add notifyhalt default Hope this can help ! > > Thanks, Regards, Xavier Parizet -- http://www.linuxant.fr
signature.asc
Description: This is a digitally signed message part.