You need to wait for all of spamd's children to die, including all of the spamc's. This can take a while on a busy and/or slow server. This works for me most of the time:
#!/bin/bash PID=`awk '{print $1}' /var/run/spamd.pid` kill -TERM $PID && wait || echo "ERROR!" /usr/local/etc/rc.d/spamd.sh exit On Sat, 8 Nov 2003, Debbie D wrote: > Thanks.. ut yes Ishold have stated that.. stop & start.. > > [root admin]# /etc/rc.d/init.d/spamd stop > Shutting down spamd: ok > [root admin]# /etc/rc.d/init.d/spamd start > Starting spamd: spamdCould not create INET socket: Address already in use > IO::Socket::INET: Address already in use > > Any other ideas??? > > > > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Spamassassin 2.54 Cobalt Raq4 w/sendmail, mailscanner, Clam antivirus > > > > After making some changes to my custom.cf I tried to restart spamd: > > /etc/rc.d/init.d/spamd restart > > > > I get returned with: > > spamdCould not create INET socket: Address already in use > > IO::Socket::INET: > > Address already in use > > > > what could be the problem here and how do I restart spamd to get it to see > > my new rules short of rebooting the server (which IMHO is a bit extreme) > > > > thanks > > > From looking at the spamd.sh script There is only a stop and start > commands. I would use spamd stop then spamd start. If you know how to > script, you could modify the spamd.sh file and make a restart command that > would stop the spamd wait 5 seconds and start it.... > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: ApacheCon 2003, > 16-19 November in Las Vegas. Learn firsthand the latest > developments in Apache, PHP, Perl, XML, Java, MySQL, > WebDAV, and more! http://www.apachecon.com/ > _______________________________________________ > Spamassassin-talk mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/spamassassin-talk > James Smallacombe PlantageNet, Inc. CEO and Janitor [EMAIL PROTECTED] http://3.am ========================================================================= ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk