On Sun, Apr 14, 2002 at 10:10:27AM +0100, Sean Rima wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Sometime around 3am SA died on me. I use the current CVS version. I
> cannot say why SA has such a short life as there are no error messages
> in the syslog or the mail log file.
> 
> If anyone knows of a way of tracking SA so that I can catch whatever
> stopped it, please let me know so I can report it if it is a fault.

Well, you can do what I do...

Use the follow script to start SA instead of the other methods.

(This ends up running as a service loop.)

##START##

#!/bin/bash

CLIENTS='xxx.xxx.xxx.xx'
WD='/opt/spamassassin'

cd $WD

while [ 1 ]
 do
  nohup spamd -D -i 0.0.0.0 -c -a -A $CLIENTS
  mv nohup.out nohup.old.old
  sleep 30
 done

##END##

Now, of course, this would only save one level of failure, you could also
do something like

  mv nohup.out nohup.`date +%s`

This assumes gnu date.

-- 
Kelsey Cummings - [EMAIL PROTECTED]         sonic.net
System Administrator                    300 B Street, Ste 101
707.522.1000 (Voice)                    Santa Rosa, CA 95404
707.547.2199 (Fax)                      http://www.sonic.net/
Fingerprint = 7F 59 43 1B 44 8A 0D 57  91 08 73 73 7A 48 90 C5

_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to