AMaViS doesn't restart normally

Gary V mr88talent at gmail.com
Fri Jun 1 01:07:43 CEST 2012


>>Hello

>>I installed amavisd-new 2.6.5-0ubuntu on my Ubuntu 12.04 Server with Postfix 2.9.1-4, \
>>Spamassassin 3.3.1 and ClamAV  and now I am not sure how to restart it correctly.

>>When I do:

>>service amavis restart

>>I get an error:

>>root at example:~# service amavis restart
>>Stopping amavisd: (not running).
>>Starting amavisd: The amavisd daemon is already running, PID: [4307]
>>(failed).

To fix:

> sed -i "s/ --name \${DAEMONNAME}//" /etc/init.d/amavis
>
>
> https://bugs.launchpad.net/ubuntu/+source/amavisd-new/+bug/930916
>
> --

Excerpt from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=652026

#######################################################
> Sure enough, this is a documented change in Perl 5.14:
>
>         Assignment to $0 sets the legacy process name with prctl() on
>         Linux
>
>         On Linux the legacy process name is now set with prctl(2), in
>         addition to altering the POSIX name via argv[0], as Perl has
>         done since version 4.000. Now system utilities that read the
>         legacy process name such as ps, top, and killall recognize the
>         name you set when assigning to $0. The string you supply is
>         truncated at 16 bytes; this limitation is imposed by Linux.

Hmm, this means we _will_ have to drop the use of --name in amavisd-new, no
way around it.  I wish I could use -u and -g, but that requires actually
parsing the config files the same way amavisd-new does.
#######################################################

-- 
Gary V


More information about the amavis-users mailing list