Package: mailscanner Version: 4.68.8-1 Severity: normal If I issue an /etc/init.d/mailscanner start comand, after a short initialization phase, two 'MailScanner' processes remain in the system: # ps aux | grep MailScanner root 13990 0.0 0.2 4788 744 pts/6 R+ 02:21 0:00 grep MailScanner # /etc/init.d/mailscanner start # ps aux | grep MailScanner 106 14012 0.0 7.2 26428 18592 ? SNs 02:21 0:00 MailScanner: master waiting for children, sleeping 106 14013 21.1 16.6 65116 42836 ? SN 02:21 0:02 MailScanner: waiting for messages root 14065 0.0 0.2 4788 756 pts/6 R+ 02:21 0:00 grep MailScanner
But when I later issue an /etc/init.d/mailscanner stop command, both processes die, but a new one is launched. To show it, I do this: I run this in one terminal: # /etc/init.d/mailscanner stop and this in another one: # while true; do ps aux | grep MailScanner; sleep 0.1; done The monitoring while loop starts by outputting this: 106 14977 0.0 7.2 26428 18592 ? SNs 02:29 0:00 MailScanner: master waiting for children, sleeping 106 14978 15.1 16.8 65368 43128 ? SN 02:29 0:03 MailScanner: waiting for messages root 15564 0.0 0.2 4788 752 pts/8 R+ 02:30 0:00 grep MailScanner The moment I run the /etc/init.d/mailscanner stop command it says: 106 14977 0.0 7.4 26428 19096 ? SNs 02:29 0:00 MailScanner: killing children, bwahaha! root 15583 0.0 0.2 1700 520 pts/6 S+ 02:30 0:00 start-stop-daemon --stop --retry=TERM/30 --name MailScanner 106 15584 0.0 7.2 26428 18544 ? RN 02:30 0:00 MailScanner: starting child root 15586 0.0 0.2 4788 756 pts/8 R+ 02:30 0:00 grep MailScanner ... so, the start-stop-daemon command inside the /etc/init.d/mailscanner script is actually killing the 2 existing MailScanner processes, but inmediatly a new process is launched: ... 106 14977 0.0 7.4 26428 19096 ? RNs 02:29 0:00 MailScanner: killing children, bwahaha! root 15583 9.3 0.2 1700 520 pts/6 S+ 02:30 0:00 start-stop-daemon --stop --retry=TERM/30 --name MailScanner 106 15584 70.6 12.9 56212 33300 ? RN 02:30 0:02 MailScanner: starting child root 15657 0.0 0.2 4788 760 pts/8 S+ 02:30 0:00 grep MailScanner root 15583 10.0 0.2 1700 520 pts/6 S+ 02:30 0:00 start-stop-daemon --stop --retry=TERM/30 --name MailScanner 106 15584 73.3 13.4 57072 34520 ? RN 02:30 0:02 MailScanner: starting child root 15660 0.0 0.2 4788 740 pts/8 R+ 02:30 0:00 grep MailScanner ... (I have Virus Scanners = auto configured in MailScanner.conf, so it calls all the wrappers in turn to detect installed scanners) ... root 15583 10.0 0.2 1700 520 pts/6 S+ 02:30 0:00 start-stop-daemon --stop --retry=TERM/30 --name MailScanner 106 15584 73.0 16.6 65120 42720 ? SN 02:30 0:02 MailScanner: starting child 106 15714 0.0 1.0 7284 2680 ? RN 02:30 0:00 /usr/bin/perl -w /etc/MailScanner/wrapper/panda-wrapper /usr -IsItInstalled root 15716 0.0 0.2 4788 760 pts/8 S+ 02:30 0:00 grep MailScanner ... (It then settles like this) ... root 15583 10.5 0.2 1700 520 pts/6 S+ 02:30 0:00 start-stop-daemon --stop --retry=TERM/30 --name MailScanner 106 15584 74.0 16.6 65120 42832 ? SN 02:30 0:02 MailScanner: waiting for messages root 15736 0.0 0.2 4788 756 pts/8 S+ 02:30 0:00 grep MailScanner ... (Until start-stop-daemon times-out) 106 16798 0.7 16.7 65340 43012 ? SN 02:35 0:03 MailScanner: waiting for messages root 17263 0.0 0.2 4788 752 pts/8 R+ 02:41 0:00 grep MailScanner ... At this point, the /etc/init.d/mailscanner script after being hanged for about 30 seconds has ended with: Program MailScanner, 1 process(es), refused to die A second invocation kills the newly created instance of MailScanner: torton:~# /etc/init.d/mailscanner stop torton:~# /etc/init.d/mailscanner stop #Third call, confirming there are no more MailScanners left No MailScanner found running; none killed. Rarely does the /etc/init.d/mailscanner script success at first invocation; with my setup it almost always exhibits this problem. This problem started after I upgraded from Etch to Lenny. I can provide my MailScanner.conf and additional information as requested. Thanks for your work. -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core) Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages mailscanner depends on: ii debconf [debconf-2.0] 1.5.22 Debian configuration management sy ii exim4 4.69-5 meta-package to ease Exim MTA (v4) ii exim4-daemon-light [mai 4.69-5+b1 lightweight Exim MTA (v4) daemon ii libarchive-zip-perl 1.18-1 Module for manipulation of ZIP arc ii libcompress-zlib-perl 2.011-1 Perl module for creation and manip ii libconvert-binhex-perl 1.119+pristine-3 Perl5 module for extracting data f ii libconvert-tnef-perl 0.17-8 Perl module to read TNEF files ii libdbd-sqlite3-perl 1.14-2+b1 Perl DBI driver with a self-contai ii libfilesys-df-perl 0.92-3+b1 Module to obtain filesystem disk s ii libhtml-parser-perl 3.56-1+b1 A collection of modules that parse ii libmailtools-perl 2.03-1 Manipulate email in perl programs ii libmime-perl 5.426-1 transitional dummy package ii libmime-tools-perl [lib 5.426-1 Perl5 modules for MIME-compliant m ii libnet-cidr-perl 0.11-3 Manipulate IPv4/IPv6 netblocks in ii libsys-hostname-long-pe 1.4-2 Figure out the long (fully-qualifi ii libsys-syslog-perl 0.26-1 Perl interface to the UNIX syslog( ii perl 5.10.0-11 Larry Wall's Practical Extraction ii spamassassin 3.2.5-1 Perl-based spam filter using text ii ucf 3.007 Update Configuration File: preserv ii unzip 5.52-11 De-archiver for .zip files Versions of packages mailscanner recommends: pn clamav <none> (no description available) pn clamav-daemon <none> (no description available) pn libnet-cidr-lite-perl <none> (no description available) ii ncftp 2:3.2.1-1 A user-friendly and well-featured ii tnef 1.4.3-2 Tool to unpack MIME application/ms ii wget 1.11.3-1 retrieves files from the web -- debconf information: * mailscanner/v3_upgrade: Continue -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]