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.
Jarry
--
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.