Your message dated Wed, 14 Jan 2009 00:01:30 +0100
with message-id <[email protected]>
and subject line Re: Bug#511688: [Pkg-clamav-devel] Bug#511688:
"/etc/init.d/clamav-milter stop" doesn't stop the clamav-milter daemon
has caused the Debian Bug report #511688,
regarding "/etc/init.d/clamav-milter stop" doesn't stop the clamav-milter daemon
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
511688: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=511688
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: clamav-milter
Severity: normal
Tags: patch
The script "/etc/init.d/clamav-milter" doesn't do a proper job when
trying to stop the daemon. This is due to the fact that the file
containing the PID (/var/run/clamav/clamav-milter.pid) in fact holds the
process group ID, which is negative, and line 88 of the script, which is
supposed to kill the daemon, is as follows:
kill -15 -"$PID" 2>/dev/null || true
The minus sign before "$PID" shouldn't be there, as it is already
included in the PID contained in the /var/run/clamav/clamav-milter.pid
file. That line should read:
kill -15 "$PID" 2>/dev/null || true
Hope that helps, and please be indulgent about the rather free form of
my patch (it's only 1 line anyway ;-) ).
Regards,
Bruno
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.18-6-486
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages clamav-milter depends on:
ii clamav-base 0.94.dfsg.2-1 anti-virus utility for Unix
- base
ii clamav-freshclam [clamav-d 0.94.dfsg.2-1 anti-virus utility for Unix
- viru
ii libc6 2.7-13 GNU C Library: Shared libraries
pn libclamav2 <none> (no description available)
pn libmilter0 <none> (no description available)
ii libwrap0 7.6.q-15 Wietse Venema's TCP
wrappers libra
ii lsb-base 3.2-20 Linux Standard Base 3.2
init scrip
Versions of packages clamav-milter recommends:
ii clamav-daemon 0.94.dfsg.2-1 anti-virus utility for Unix
- scan
Versions of packages clamav-milter suggests:
pn clamav-docs <none> (no description available)
pn daemon <none> (no description available)
--- End Message ---
--- Begin Message ---
[...]
>
> It seems I've something screwed up here in my installation, sorry about
> that. I just downloaded a fresh binary and a fresh source package again,
> and everything is fine, the "untainting" line just above the "kill -15"
> is there... Don't know what happened here, looks like I still have an
> old init script hanging around as Stephen suggested...
>
> My fault... Sorry again for the fuss. This "bug" can of course be
> closed, and I'm going to hang myself, or get drowned somewhere, argh. :-)
>
No need to feel ashamed, it all looked like a bug initially :-) And it was easy
to find out that this wasn't the case due to your quick responses.
Best,
Michael
pgp56LbzoBe2i.pgp
Description: PGP signature
--- End Message ---
_______________________________________________
Pkg-clamav-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-clamav-devel