Re: [gentoo-user] Re: Gentoo Halt message

2007-06-30 Thread Neil Bothwick
Hello Stephan Wacker, > while [ `find /var/spool/postfix/active -type f -mmin -1` ] find returns success if it finds no files, so this will loop forever. Use [[ $(find blah | wc -l) -gt 0 ]] -- Neil Bothwick The world is a tragedy to those who feel, but a comedy to those who think.(Horac

Re: [gentoo-user] Re: Gentoo Halt message

2007-06-30 Thread Stephan Wacker
Hi, I would rather suggest you put the code into /etc/conf.d/local.stop That script is executed before anything in /etc/init.d is stopped. If you want to make sure the mail has left your system, you might test if the outgoing mail directory is empty. In my case that is /var/s

[gentoo-user] Re: Gentoo Halt message

2007-06-26 Thread Xavier Parizet
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/not