This one time, at band camp, Carsten Leonhardt said: > The following transcript says it all: > > # /etc/init.d/clamav-milter stop > Stopping Sendmail milter plugin for ClamAV: clamav-milter Waiting . . . . > . . . . . . . . . . . . /etc/init.d/clamav-milter: line 101: kill: > --4921: arguments must be process or job IDs
Huh, that's odd. Try this patch: --- debian/clamav-milter.init (revision 415) +++ debian/clamav-milter.init (working copy) @@ -92,6 +92,7 @@ OPTIND=1 log_begin_msg "Stopping $DESC" "$BASENAME" if [ -n "$PID" ]; then + PID=`sed 's/[^0-9]//g' $PID` kill -15 -"$PID" 2>/dev/null || true ret=$? sleep 2 > # /etc/init.d/clamav-milter status > clamav-milter is running. > # ps xuaw | grep clamav-milter > clamav 4921 0.0 0.2 56656 1220 ? Ssl 08:58 0:00 > /usr/sbin/clamav-milter --max-children=2 -ol --external [EMAIL PROTECTED] > --postmaster-only --headers --pidfile /var/run/clamav/clamav-milter.pid > local:/var/spool/postfix/clamav/clamav-milter.ctl > root 5397 0.0 0.1 3528 700 pts/1 R+ 09:11 0:00 grep > clamav-milter > # /etc/init.d/clamav-milter stop > Stopping Sendmail milter plugin for ClamAV: clamav-milter Waiting . . . . > aubec:/var/log/clamav# ps xuaw | grep clamav-milter > root 5422 0.0 0.1 3528 700 pts/1 R+ 09:12 0:00 grep > clamav-milter The reason it works the second time is irritating, but know - the lsb init scripts remove the pidfile the first time around, and then the second stop run uses a different code path that doesn't get silly. Thanks, -- ----------------------------------------------------------------- | ,''`. Stephen Gran | | : :' : [EMAIL PROTECTED] | | `. `' Debian user, admin, and developer | | `- http://www.debian.org | -----------------------------------------------------------------
signature.asc
Description: Digital signature