Il 16/11/2010 15:11, John Hardin ha scritto:
On Tue, 16 Nov 2010, Francesco Acchiappati wrote:

>  run-parts: /etc/cron.daily/spamassassin exited with return code 25

here it is

The only things that appear to be exposed and able to return a nonzero return code (apart from the simple stuff like sleep and chmod) are:

test -f /etc/default/spamassassin && . /etc/default/spamassassin

and

   sa-compile > /dev/null 2>&1

I'd suggest the most likely problem is sa-compile is failing for some reason. Try running it interactively.

You could run this:

  bash -x /etc/cron.daily/spamassassin 2>&1 | tee /tmp/log.txt

to watch the commands as they execute and see which fails.

As you suggested here is the output

# bash -x /etc/cron.daily/spamassassin 2>&1 | tee /tmp/log.txt
+ set -e
+ CRON=0
+ test -f /etc/default/spamassassin
+ . /etc/default/spamassassin
++ ENABLED=1
++ OPTIONS='-q -x -u tomcat4'
++ PIDFILE=/var/run/spamd.pid
++ NICE='--nicelevel 15'
++ CRON=1
+ test -x /usr/bin/sa-update
+ test -x /etc/init.d/spamassassin
+ '[' 1 = 0 ']'
+ RANGE=3600
++ od -vAn -N2 -tu4
+ number='      62039'
++ expr 62039 % 3600
+ number=839
+ sleep 839
+ umask 022
+ sa-update
+ exit 0

Reply via email to