[Pkg-clamav-devel] Bug#511688: "/etc/init.d/clamav-milter stop" doesn't stop the clamav-milter daemon

Bruno Tréguier Bruno.Treguier at shom.fr
Tue Jan 13 14:12:53 UTC 2009

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 ;-) ).



-- 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)

More information about the Pkg-clamav-devel mailing list