Arthur Dent a écrit :
> Hello All,
> 
> I have the following command running daily in my crontab on my Fedora 9
> box: (excuse the linewrap)
> 
> sa-update --channelfile
> /etc/mail/spamassassin/sare-sa-update-channels.txt --gpgkey 856AA88A
> --gpgkey 6C6191E3 && /sbin/service spamassassin restart
> 
> and every day I get a reassuring email in my root system email showing
> the following:
> 
> Stopping spamd: [  OK  ]
> Starting spamd: [  OK  ]
> 
> The day before yesterday however the spamd restart messages stopped. I
> investigated by running the above command with the -D switch and found -
> unsurprisingly that all of the channels gave results like:
> 
> [19758] dbg: channel: metadata version = 320722979
> [19758] dbg: dns: 5.2.3.sought.rules.yerp.org => 320722979, parsed as
> 320722979
> [19758] dbg: channel: current version is 320722979, new version is
> 320722979, skipping channel
> 
> showing that all the channels were up-to-dateup-to-date.
> 
> The last line however was:
> [19758] dbg: diag: updates complete, exiting with code 1
> 
> Is this an error code?


I use (after sa-update command):


errorcode=$?

if [ $errorcode = 1 ]; then
    output "No fresh updates available"
    exit 0
fi

if [ $errorcode -gt 1 ]; then
    output "Channel update failed (err=$errorcode)"
    exit 1
fi

output "channels updated"

output "Compiling rules"
(echo -n "########"; date) >  /var/log/sa-compile.out
sa-compile  >>  /var/log/sa-compile.out 2>&1

output "Restarting amavisd"
/usr/local/etc/rc.d/amavisd restart

exit 0


> Does this explain why the "&& /sbin/service spamassassin restart" fails
> to run now?
> 

no. you should be able to restart sa anytime you want!

> Can it be true that there have been NO updates to SA rules, SARE or
> Sought Rules in the last 2 days?...

The only "exception" I see is 90_2tld_cf_sare_sa-update_dostech_net.cf
which was updated on 06-Dec-2008 05:14.

Sought shows a date of: 03-Dec-2008 04:32. This is unusual. maybe it's
related to svn.apache.org certificate renewal?





Reply via email to