Il 16/11/2010 12:48, RW ha scritto:
On Tue, 16 Nov 2010 09:08:20 +0100
Francesco Acchiappati<francesco.acchiapp...@secoges.com>  wrote:

Hello everyone,
i'm experiencing a strange issue everytime the crondaily runs the
spamassassin script for updating.

the error returned to me by cron daily is the following:

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

I've tried to search on this list archive and also on the web for a
solution but with no luck, can anyone give me an hint about what the
return code 25 is supposed to mean?

I don't think that cron.daily/spamassassin is part of SA - it's
probably specific to your OS or distribution. Perhaps you could post it.

here it is
------------------------
#!/bin/sh

# Duncan Findlay
# du...@debian.org

# Daily cronjob for SpamAssassin updates. This isn't pretty but it
# should do the job.

set -e

CRON=0

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

test -x /usr/bin/sa-update || exit 0
test -x /etc/init.d/spamassassin || exit 0

if [ "$CRON" = "0" ] ; then
    exit 0
fi

# Sleep for up to 3600 seconds
# Taken from apticron's cron.daily
RANGE=3600
number=`od -vAn -N2 -tu4 < /dev/urandom`
number=`expr $number "%" $RANGE`
sleep $number


# Update
umask 022
sa-update || exit 0

# Compile, if rules have previously been compiled, and it's possible
if [ -x /usr/bin/re2c -a -x /usr/bin/sa-compile -a -d /var/lib/spamassassin/compiled ]; then
    sa-compile > /dev/null 2>&1
fi

# Fixup perms -- group and other should be able to read and execute,
# but never write.  Works around sa-compile's failure to obey umask.
if [ -d /var/lib/spamassassin ]; then
    chmod -R go-w,go+rX /var/lib/spamassassin/
fi

-----------------------------------------------------

Reply via email to