On Tue, 30 Sep 2003, Scott Rothgaber wrote: > Mike Carlson wrote: > > > What is the best way to kill spamassassin and restart it again after making > > a change to the local.cf file? > > `/usr/local/etc/rc.d/spamd.sh restart' on FreeBSD. > > IIRC, this just kills and restarts the daemon. I seem to remember that > `kill -1` does not work.
Alternatively, you can write your own script. This is the one I use. Location is /usr/local/etc/rc.d/01spamass.sh. The -s local0 adds the ability to log spamd to syslog (provided you've set up the syslog.conf file to add the following line local0.* /var/log/spamd.log) ================================================ SCRIPT_NAME="/usr/local/etc/rc.d/01spamass.sh" DAEMON_NAME="Spam Assassin" DAEMON="/usr/local/bin/spamd --max-children=20 -d -x -u daemon -s local0" RETVAL=0 start() { # Start SpamAssassin in daemon mode echo Starting ${DAEMON_NAME} ... ${DAEMON} RETVAL=$? echo } stop () { # Stop SpamAssassin echo Stopping ${DAEMON_NAME} kill `ps ax | grep spamd | grep -v grep | awk '{print $1}'` RETVAL=$? echo } # OK, let's start case "$1" in start) start ;; stop) stop ;; restart) stop start RETVAL=$? ;; *) echo "Usage: ${SCRIPT_NAME} {start|stop|restart}" exit 1 esac ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk