Package: amavisd-new
Version: 1:2.6.4-4
Severity: important
Dear Maintainer,
the init script not working correctly.
In our configuration an amavisd-new restart is triggered by a spamassassin rule
update.
In log file I see the following messages:
The amavisd daemon is already running, PID: [2729]
run-parts: /etc/spamassassin/sa-update-hooks.d/amavisd-new exited with return
code 1
run-parts: /etc/cron.daily/spamassassin exited with return code 1
When calling "/etc/init.d/amavis restart" it gives
as105849:~# ps -eaf | grep amavis
amavis 20044 21334 0 00:14 ? 00:00:00 amavisd (ch4-avail)
amavis 20048 21334 0 00:14 ? 00:00:00 amavisd (ch4-avail)
amavis 21334 1 0 Dec13 ? 00:00:01 amavisd (master)
amavis 21336 21334 0 Dec13 ? 00:00:01 amavisd (ch7-avail)
root 25883 22603 0 10:16 pts/0 00:00:00 grep amavis
as105849:~# /etc/init.d/amavis restart
Stopping amavisd: (not running).
Starting amavisd: The amavisd daemon is already running, PID: [21334]
(failed).
as105849:~# ps -eaf | grep amavis
amavis 20044 21334 0 00:14 ? 00:00:00 amavisd (ch4-avail)
amavis 20048 21334 0 00:14 ? 00:00:00 amavisd (ch4-avail)
amavis 21334 1 0 Dec13 ? 00:00:01 amavisd (master)
amavis 21336 21334 0 Dec13 ? 00:00:01 amavisd (ch7-avail)
root 26011 22603 0 10:18 pts/0 00:00:00 grep amavis
as105849:~#
But when changing the init script
as105849:~# diff -u /etc/init.d/amavis-save /etc/init.d/amavis
--- /etc/init.d/amavis-save 2011-12-14 10:19:07.000000000 +0100
+++ /etc/init.d/amavis 2011-12-14 10:19:32.000000000 +0100
@@ -42,7 +42,7 @@
set -e
START="--start --quiet --pidfile $PIDFILE --name ${DAEMONNAME} --startas
${DAEMON}"
-STOP="--stop --quiet --pidfile $PIDFILE --name ${DAEMONNAME}"
+STOP="--stop --quiet --pidfile $PIDFILE"
PARAMS=
check_noncompatible_upgrade() {
as105849:~#
It works:
as105849:~# !ps
ps -eaf | grep amavis
amavis 20044 21334 0 00:14 ? 00:00:00 amavisd (ch4-avail)
amavis 20048 21334 0 00:14 ? 00:00:00 amavisd (ch4-avail)
amavis 21334 1 0 Dec13 ? 00:00:01 amavisd (master)
amavis 21336 21334 0 Dec13 ? 00:00:01 amavisd (ch7-avail)
root 26082 1 0 10:19 ? 00:00:00 gvim /etc/init.d/amavis
root 26155 22603 0 10:20 pts/0 00:00:00 grep amavis
as105849:~# /etc/init.d/amavis restart
Stopping amavisd: amavisd-new.
Starting amavisd: amavisd-new.
as105849:~# ps -eaf | grep amavis
root 26082 1 0 10:19 ? 00:00:00 gvim /etc/init.d/amavis
amavis 26176 1 48 10:20 ? 00:00:00 amavisd (master)
amavis 26178 26176 0 10:21 ? 00:00:00 amavisd (virgin child)
amavis 26179 26176 0 10:21 ? 00:00:00 amavisd (virgin child)
amavis 26180 26176 0 10:21 ? 00:00:00 amavisd (virgin child)
root 26182 22603 0 10:21 pts/0 00:00:00 grep amavis
as105849:~#
Oh by the way. Is there a dependency missing? In the init script amavisd-new is
using start-stop-daemon which is provided by dpkg. But amavisd-new depends not
on dpkg.
Regards
Michael
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages amavisd-new depends on:
ii adduser 3.113
ii debconf [debconf-2.0] 1.5.41
ii file 5.09-2
ii libarchive-zip-perl 1.30-4
ii libberkeleydb-perl 0.49-1
ii libcompress-raw-zlib-perl 2.045-1
ii libconvert-tnef-perl 0.17-11
ii libconvert-uulib-perl 1:1.4~dfsg-1+b1
ii libdigest-md5-perl <none>
ii libio-stringy-perl 2.110-5
ii libmail-dkim-perl 0.39-1
ii libmailtools-perl 2.08-1
ii libmime-base64-perl <none>
ii libmime-tools-perl 5.502-1
ii libnet-server-perl 0.99-3
ii libunix-syslog-perl 1.1-2+b2
ii pax 1:20090728-4
ii perl [libtime-hires-perl] 5.14.2-6
ii perl-modules [libarchive-tar-perl] 5.14.2-6
amavisd-new recommends no packages.
Versions of packages amavisd-new suggests:
ii apt-listchanges 2.85.8
ii arj 3.10.22-10
ii cabextract 1.4-1
ii clamav 0.97.3+dfsg-2
ii clamav-daemon 0.97.3+dfsg-2
ii cpio 2.11-7
ii dspam <none>
ii lha 1.14i-10.3
ii libauthen-sasl-perl 2.1500-1
ii libdbi-perl 1.616-1+b2
ii libmail-dkim-perl 0.39-1
ii libnet-ldap-perl 1:0.4300-2
ii libsnmp-perl 5.4.3~dfsg-2.3+b1
ii lzop 1.03-3
ii nomarch <none>
ii p7zip 9.20.1~dfsg.1-3
ii rpm 4.9.1.2-1+b1
ii spamassassin 3.3.2-2
ii unrar 1:4.0.3-1
ii unrar-free 1:0.0.1+cvs20071127-1
ii zoo 2.10-24
-- Configuration Files:
/etc/amavis/conf.d/01-debian changed [not included]
/etc/amavis/conf.d/05-domain_id changed [not included]
/etc/amavis/conf.d/15-content_filter_mode changed [not included]
/etc/amavis/conf.d/50-user changed [not included]
/etc/init.d/amavis changed [not included]
-- debconf information:
amavisd-new/outdated_config_style_warning:
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]