Try editing /etc/rulesdujour/config and change what’s assigned to SA_RESTART, so that RDJ doesn’t try to restart spamd.  Perhaps it should be restarting MailScanner instead, or run a do-nothing command.

 


From: Casey King [mailto:[EMAIL PROTECTED]
Posted At: Wednesday, October 05, 2005 3:57 PM
Posted To: sa-users
Conversation: Spamd / RDJ
Subject: Spamd / RDJ
 

Because RDJ –lints SA, I have tried to create a cron job that would stop Spamd from running.  I do not want it using up so much memory since MailScanner calls SA on its own.  My crontab looks like this:

 

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

SHELL=/bin/bash

PATH=/sbin:/bin:/usr/sbin:/usr/bin

MAILTO=root

HOME=/

 

# run-parts

01 * * * * run-parts /etc/cron.hourly

02 4 * * * run-parts /etc/cron.daily

22 4 * * 0 run-parts /etc/cron.weekly

42 4 1 * * run-parts /etc/cron.monthly

 

# shut down spamassassin after rulesdejour does an update

30 * * * * root /etc/init.d/spamassassin stop

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

 

From what I “believe” I had set, is for spamassassin to be shut down every 30 minutes.

 

In /etc/cron.daily is my update_spamassassin_rules.

 

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

#!/bin/bash

 

[ -x /etc/mail/spamassassin/RulesDuJour/rules_du_jour ] || exit 0

exec /etc/mail/spamassassin/RulesDuJour/rules_du_jour

/etc/init.d/spamassassin stop

exit 0

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

 

Seeing the cron job was not working, I added the /etc/init.d/spamassassin stop to the file hoping it would stop SA after RDJ finished.  This has been no help.

 

Does anyone have another idea of what I can do to shutdown SA after RDJ lints SA?  I am getting tired of stopping SA from the command line.

 

Reply via email to