Can't Kill Sendmail Processes

If you find yourself in the sticky situation where kill -9 still won't kill a sendmail process, check the process list. If ps fax returns a "D" status code, you won't be able to stop the process. It's in an "uninterruptable sleep" state which cannot be killed.

What can you do to fix this? Check for file locking. Are files in the mail queue directory locked? Are the files in the mail queue mounted over NFS (by an idiotic administrator)? If so, the only fix is to set sendmail to not start on reboot, then reboot the box.

Printed from: http://rackerhacker.com/2006/12/28/cant-kill-sendmail-processes/ .
© Major Hayden 2012.

Leave a Reply

 

  • Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you find the information useful. If you spot something that's incorrect or confusing, please write a comment and let me know. Drop me a line if there's something you want to know more about and I'll do my best to write a post on the topic.
    -- Major Hayden

    Flattr this