AMaViS doesn't restart normally

francwalter at gmx.net francwalter at gmx.net
Thu May 31 22:58:59 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).
root at example:~#

But when I kill all amavis processes manually, then I can restart amavis without the "failed":

root at example:~# service amavis restart 
Stopping amavisd: (not running).
Starting amavisd: amavisd-new.
root at example:~#

This is my view in top:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
...
 3983 amavis    20   0  306m  99m 4604 S    0  0.6   0:05.14 amavisd (ch9-av
 4001 amavis    20   0  306m 100m 4576 S    0  0.6   0:04.01 amavisd (ch9-av
 4307 amavis    20   0  224m  91m 3108 S    0  0.6   0:02.87 amavisd (master



I don't understand this, what am I overseeing here?
Is this normal?

When I use:

/usr/sbin/amavisd-new reload

I get no error:

root at example:~# /usr/sbin/amavisd-new reload
Daemon [12353] terminated by SIGTERM, waiting for dust to settle...
becoming a new daemon...
root at example:~#

the daemon is running:

root at example:~# ps auxwww | grep amavisd
amavis   13061  0.4  0.5 229912 93992 ?        Ss   22:13   0:01 amavisd (master)
amavis   13064  0.0  0.5 231200 92740 ?        S    22:13   0:00 amavisd (virgin child)
amavis   13065  0.2  0.5 309664 97540 ?        S    22:13   0:00 amavisd (ch1-avail)
...
root at example:~#


Could somebody give me a little hint, what I am doing wrong, maybe I am completely misunderstanding something?

Thank you,

frank



More information about the amavis-users mailing list