Comments on version 4.00.0a13-1
Kris Stumpner
kris at JUMPOUT.ORG
Thu Oct 17 05:52:29 IST 2002
I don't think the service program is going to be able to delete the files
from the PIDDIR. You would need the mailscanner startup/shutdown script
that julian wrote.
Although... I had an issue with the mailscanner startup/shutdown script
still not wanting to delete the files. I modified the script and made it
available at http://www.acknak.org/mailscanner (basically there was a [ -f
/piddir/* ], which I replaced with a [ -d $PIDDIR ] && rm -f
$PIDDIR/MailScanner.* If you choose to run my modified script, you may have
to run through it and change the case on the processes, since some of the
different releases use different cases.
There are also some issues with the killproc function, it does NOT like to
kill the mailscanner process when it is ran with perl in the commandline.
(I simply change the line in check_mailscanner containing 'perl $process
$config' to '$process $config' This seems to have worked just fine with me
for every release since about 4.00.0a9 when check_mailscanner was modified.)
I started working on rewriting a new function to cycle through the PIDDIR
and pull the current PIDS and kill them exclusively, but I've been inundated
with other projects, hopefully I'll be able to pick that up and run with it
again soon.
Kris
-----Original Message-----
From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK]On
Behalf Of Julian Field
Sent: Wednesday, October 16, 2002 11:29 PM
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: [MAILSCANNER] Comments on version 4.00.0a13-1
At 20:08 16/10/2002, you wrote:
>My /var/run/MailScanner directory seems to be filling up with files that
>point to processes that no longer exist:
># ls -l /var/run/MailScanner/
>total 116
>-rw------- 1 root root 5 Oct 15 22:50 MailScanner.1053
>-rw------- 1 root root 6 Oct 15 17:01 MailScanner.13094
>-rw------- 1 root root 6 Oct 16 14:23 MailScanner.18835
>-rw------- 1 root root 6 Oct 16 14:26 MailScanner.19259
>-rw------- 1 root root 6 Oct 16 14:26 MailScanner.19262
>-rw------- 1 root root 6 Oct 16 14:26 MailScanner.19269
>-rw------- 1 root root 6 Oct 16 14:26 MailScanner.19270
>-rw------- 1 root root 6 Oct 16 14:27 MailScanner.19271
>-rw------- 1 root root 6 Oct 16 14:27 MailScanner.19347
>-rw------- 1 root root 6 Oct 16 14:27 MailScanner.19350
>-rw------- 1 root root 6 Oct 16 14:27 MailScanner.19351
>-rw------- 1 root root 6 Oct 16 14:27 MailScanner.19352
>-rw------- 1 root root 6 Oct 16 14:27 MailScanner.19353
>-rw------- 1 root root 6 Oct 16 14:27 MailScanner.19354
>-rw------- 1 root root 5 Oct 16 09:14 MailScanner.2223
>-rw------- 1 root root 5 Oct 15 23:06 MailScanner.2345
>-rw------- 1 root root 6 Oct 15 22:06 MailScanner.30802
>-rw------- 1 root root 6 Oct 15 22:06 MailScanner.30854
>-rw------- 1 root root 6 Oct 15 22:06 MailScanner.30857
>-rw------- 1 root root 6 Oct 15 22:06 MailScanner.30858
>-rw------- 1 root root 6 Oct 15 22:06 MailScanner.30859
>-rw------- 1 root root 6 Oct 15 22:06 MailScanner.30860
>-rw------- 1 root root 6 Oct 15 22:06 MailScanner.30861
>-rw------- 1 root root 6 Oct 15 22:30 MailScanner.32312
>-rw------- 1 root root 6 Oct 15 22:30 MailScanner.32315
>-rw------- 1 root root 6 Oct 15 22:30 MailScanner.32316
>-rw------- 1 root root 6 Oct 15 22:30 MailScanner.32317
>-rw------- 1 root root 6 Oct 15 22:32 MailScanner.32398
>-rw------- 1 root root 6 Oct 15 22:32 MailScanner.32401
>
># for i in /var/run/MailScanner/*;do j=$(cat $i);echo == $j ==;ps -fp
>$j|grep -v PPID;done
>== 1053 ==
>== 13094 ==
>== 18835 ==
>== 19259 ==
>== 19262 ==
>== 19269 ==
>== 19270 ==
>== 19271 ==
>== 19347 ==
>root 19347 1 0 14:27 ? 00:00:00 /usr/bin/perl
>/usr/sbin/MailScan
>== 19350 ==
>root 19350 19347 0 14:27 ? 00:00:00 /usr/bin/perl
>/usr/sbin/MailScan
>== 19351 ==
>root 19351 19347 0 14:27 ? 00:00:00 /usr/bin/perl
>/usr/sbin/MailScan
>== 19352 ==
>root 19352 19347 0 14:27 ? 00:00:00 /usr/bin/perl
>/usr/sbin/MailScan
>== 19353 ==
>root 19353 19347 0 14:27 ? 00:00:00 /usr/bin/perl
>/usr/sbin/MailScan
>== 19354 ==
>root 19354 19347 0 14:27 ? 00:00:00 /usr/bin/perl
>/usr/sbin/MailScan
>== 2223 ==
>== 2345 ==
>== 30802 ==
>== 30854 ==
>== 30857 ==
>== 30858 ==
>== 30859 ==
>== 30860 ==
>== 30861 ==
>== 32312 ==
>== 32315 ==
>== 32316 ==
>== 32317 ==
>== 32398 ==
>== 32401 ==
>
>Sometimes issuing "service MailScanner restart" gives an error message:
>Shutting down MailScanner daemons:
> MailScanner: We haven't got any child processes, which
> isn't right!, No child processes at /usr/sbin/MailScanner line 186.
>We have just tried to reap a process which wasn't one of ours!, No child
>processes at /usr/sbin/MailScanner line 189.
>
>This error happened seconds after the ps loop above. There was a "vim
>MailScanner.conf" running at that time.
I haven't managed to solve this one. It isn't harmful.
More information about the MailScanner
mailing list