On Sun, 24 May 2009 16:36:28 +0200
Jarry <[email protected]> wrote:

> Mike Kazantsev wrote:
> 
> >>> Looks like there's a line in "stop" section that kills the script
> >>> itself. Try looking for a lines like these:
> >>>   pkill MailScanner
> >>>   killall MailScanner
> >>>   start-stop-daemon --stop --name MailScanner
> > ...
> >> depend() {
> >>          need net mta
> >>          use logger dns }
> > 
> > That's what probably starts sendmail as a dependency (mta), so if you
> > want to stop both MailScanner and sendmail you can just use
> > 
> >   /etc/init.d/sendmail stop
> 
> # /etc/init.d/sendmail stop
> * Stopping MailScanner...
> * MailScanner: caught SIGTERM, aborting
> * ERROR: cannot stop sendmail as MailScanner is still up
> 
> # /etc/init.d/MailScanner stop
> * Stopping MailScanner...
> * MailScanner: caught SIGTERM, aborting
> # /etc/init.d/sendmail stop
> * Stopping MailScanner...
> * MailScanner: caught SIGTERM, aborting
> * ERROR: cannot stop sendmail as MailScanner is still up
> 
> As you see, it does not work. I think that start/stop script
> is somehow screwed. I'm going to ask on mailscanner mailing list.
> Thanks for your effort.

But you didn't change the script, of course it WILL fail just as it did.

Replace killall line with something sensible and only then try to use
it. It's obviously broken otherwise.

-- 
Mike Kazantsev // fraggod.net

Attachment: signature.asc
Description: PGP signature

Reply via email to