You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Keith De Souza <ke...@genesisgroupuk.com> on 2007/05/25 18:40:44 UTC

Spamd not starting

Hello,
 
I'm wondering if any had experienced this before. I have had a look in my
maillog
and this is what it is saying 
 
server40038 spamc[16428]: connect(AF_INET) to spamd at 127.0.0.1 failed,
retrying (#3 of 3): Connection refused
 
When I try to restart spamd is come up with this:
 
Shutting down spamd: [FAILED]
Starting spamd: [  OK  ]
 
but when i do a /etc/init.d/spamassassin status it says:
 
spamd is stopped
 
I tried stopping then starting again to no avail, I've even rebooted the
server. 
 
The Linux server thatis running on is Fedora Core 5 and SpamAssassin 3.1.8
 
Any Ideas?
 
Cheers
 
Keith

RE: Spamd not starting

Posted by Keith De Souza <ke...@genesisgroupuk.com>.
Thanks for the explaination John - much appreciated..

Cheers

keith

-----Original Message-----
From: John D. Hardin [mailto:jhardin@impsec.org] 
Sent: 25 May 2007 18:27
To: Keith De Souza
Cc: users@spamassassin.apache.org
Subject: Re: Spamd not starting

On Fri, 25 May 2007, Keith De Souza wrote:

> When I try to restart spamd is come up with this:
>  
> Shutting down spamd: [FAILED]
> Starting spamd: [  OK  ]

The default init script does not wait for all children to exit before
reporting a failed stop. You'll see that if you happen to try a restart
while a message is being processed and the scan doesn't complete within the
time the init script is willing to wait. That reports FAILED because the
process is still there.

Then the restart doesn't start another copy, and sees the old one, and
reports OK.

Then the running SA exits when the scan of the current message finishes.

I hacked mine to wait, but I don't have it handy right at the moment, sorry.

--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  You do not examine legislation in the light of the benefits it
  will convey if properly administered, but in the light of the
  wrongs it would do and the harms it would cause if improperly
  administered.                                  -- Lyndon B. Johnson
-----------------------------------------------------------------------
 529 days until the Presidential Election


Re: Spamd not starting

Posted by "John D. Hardin" <jh...@impsec.org>.
On Fri, 25 May 2007, Keith De Souza wrote:

> When I try to restart spamd is come up with this:
>  
> Shutting down spamd: [FAILED]
> Starting spamd: [  OK  ]

The default init script does not wait for all children to exit before
reporting a failed stop. You'll see that if you happen to try a
restart while a message is being processed and the scan doesn't
complete within the time the init script is willing to wait. That 
reports FAILED because the process is still there.

Then the restart doesn't start another copy, and sees the old one, and
reports OK.

Then the running SA exits when the scan of the current message 
finishes.

I hacked mine to wait, but I don't have it handy right at the moment, 
sorry.

--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  You do not examine legislation in the light of the benefits it
  will convey if properly administered, but in the light of the
  wrongs it would do and the harms it would cause if improperly
  administered.                                  -- Lyndon B. Johnson
-----------------------------------------------------------------------
 529 days until the Presidential Election