[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] sendmail keeps crashing




Thanks for the tip Brian,

The killall seems to work fine, but the sendmail start routine does not start back up unless
I run /etc/rc.d/init.d/sendmail start.

Does anyone know why sendmail would fail to start back up both witht the original restart routine,
and with Brian's modified routine?



On Wednesday 29 October 2003 11:10 pm, Brian Rahill wrote:
What is probably happening is that sendmail is getting a restart command from 
the GUI or swatch or something like that.
If there are mails in the queue that are being sent at the time then the 
restart command often causes a problem.
Best expressed, when restart of sendmail is called, it firstly does:
killall sendmail
This kills all the IDLE/waiting sendmail processes. Not those that are 
currently communicating with other servers.
then it tries to start sendmail with
/usr/sbin/sendmail -bd -q15m
Which fails because another sendmail process is already running (the one 
currently communicating with other servers).

A solution is to modify the init script to be more destructive. Open up 
/etc/rc.d/init.d/sendmail (Or on the 550 i think this is 
/etc/init.d/sendmail)
Go to the section that looks like:
  restart)
        $0 stop
        sleep 5
        $0 start
        ;;

And change it so it looks like this:
  restart)
        killall -9 sendmail
        sleep 5
        $0 start
        ;;


That should do what you need. It is a little more aggressive but generally its 
fine.

-- 
Andy
andy @ raqpak . com

http://www.raqpak.com/  Unofficial Cobalt downloads/support