* Daryl C. W. O'Shea <[EMAIL PROTECTED]> [070915 19:26]:
> micah wrote:
>> If so, I'm looking for ideas for detecting if there are actually any 
>> updates from sa-update, and then *only* churning the sa-compile if there 
>> were updates. As I have it now, I'm running a sa-compile no matter what, 
>> which is a bit of a waste in and of itself, but if I also have to restart 
>> spamd then I'm potentially letting some messages sneak through while the 
>> restart happens. I'd like to minimize this as much as possible.
>
> I'd image that the (quite brief) sa-update perldoc will be quite 
> enlightening and answer your question.

I guess I need to change my cronjob to be:

0 2 * * * sa-update --gpgkey D1C035168C1EBC08464946DA258CDB3ABDE9DC10 --channel 
saupdates.openprotect.com --channel update s.spamassassin.org && sa-compile 
&>/dev/null && /etc/init.d/spamassassin restart &>/dev/null

Micah

Reply via email to