spamassassin/sa-update.cronscript
2007-02-13 18:32:20 +00:00

8 lines
240 B
Bash

#!/bin/bash
sleep $(expr $RANDOM % 7200)
#echo SpamAssassin rule update begins at `date`
# Only restart spamd if sa-update returns 0, meaning it updated the rules
/usr/bin/sa-update && /etc/init.d/spamassassin condrestart > /dev/null
echo