Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 4th August 2011, 15:58
VinceHeuser VinceHeuser is offline
Junior Member
 
Join Date: Aug 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question Squeeze upgrade killed Spamassassin daemon init scriptSpama

Falko,
I followed your ISP setup in Etch... and upgraded succesfully to Lenny.
Now, a year later, I "dist-upgraded" to squeeze and have a problem.
My old cron was "sa-update --nogpg && /etc/init.d/spamd restart"
That now fails, since there is no "/etc/init.d/spamd" script.

When I type # "spamd" or "spamd stop" I get exactly 10 iterations of :
"warn: server socket setup failed, retry 1: spamd: could not create INET socket on 127.0.0.1:783: Address already in use"

If I kill all spamd processes, then try "spamd start" I get
Aug 3 22:18:37.701 [18002] info: spamd: server started on port 783/tcp (running version 3.3.1)
Aug 3 22:18:37.702 [18002] info: spamd: server pid: 18002
Aug 3 22:18:37.704 [18002] info: spamd: server successfully spawned child process, pid 18004
Aug 3 22:18:37.708 [18002] info: spamd: server successfully spawned child process, pid 18005
Aug 3 22:18:37.710 [18002] info: prefork: child states: II
and the cursor hangs here.....

if I hit <ctrl>-C I get
Aug 3 22:18:58.180 [18002] info: spamd: server killed by SIGINT, shutting down
and the thing is dead again....

After days of searching and reading, I can find no startup script or explanation. In Squeeze, what is the proper way to set up a daemon of sa

I am using your ISPConfig... Postfix, Amavis, Dovecot, SA, Squirrelmail, etc.

Vince Heuser
Louisville, Ky. USA
Reply With Quote
Sponsored Links
  #2  
Old 5th August 2011, 10:24
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

What's the output of
Code:
ls -la /etc/init.d/
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 5th August 2011, 11:08
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

This script is called "spamassassin" not spamd

Code:
/etc/init.d/spamassassin
Reply With Quote
  #4  
Old 5th August 2011, 15:52
VinceHeuser VinceHeuser is offline
Junior Member
 
Join Date: Aug 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question Spamd script changed to spamassassin in Debian 6?

Here's the relevant (I hope) listing of init.d:
total 448
drwxr-xr-x. 2 root root 4096 Aug 1 10:31 .
drwxr-xr-x. 98 root root 12288 Aug 5 07:01 ..
-rwxr-xr-x 1 root root 3664 Dec 16 2010 amavis
-rwxr-xr-x 1 root root 7476 Mar 22 16:56 apache2
-rwxr-xr-x 1 root root 1071 Nov 23 2009 atd
-rwxr-xr-x 1 root root 9205 Jul 30 17:15 clamav-daemon
-rwxr-xr-x 1 root root 8459 Jul 30 17:15 clamav-freshclam
-rwxr-xr-x 1 root root 7114 Mar 2 2010 console-screen.sh
-rwxr-xr-x 1 root root 3753 Dec 18 2010 cron
-rwxr-xr-x 1 root root 2832 Jun 12 07:31 dbus
-rwxr-xr-x 1 root root 5696 May 25 04:09 dovecot
-rwxr-xr-x 1 root root 5717 Jun 28 2010 fail2ban
-rwxr-xr-x. 1 root root 1329 Jan 2 2008 halt
-rw-r--r-- 1 root root 0 Jul 17 13:51 .legacy-bootordering
-rwxr-xr-x 1 root root 3649 Jan 1 2011 mtab.sh
-rwxr-xr-x 1 root root 2443 Aug 29 2010 openbsd-inetd
-rwxr-xr-x 1 root root 4840 May 4 17:30 postfix
-rwxr-xr-x 1 root root 1298 Jan 31 2010 procps
-rwxr-xr-x 1 root root 4965 Mar 7 04:09 proftpd
-rwxr-xr-x 1 root root 117 Jan 1 2011 rcS
-rwxr-xr-x 1 root root 8065 Dec 19 2010 saslauthd
-rwxr-xr-x 1 root root 3286 Jan 1 2011 sendsigs
-rwxr-xr-x 1 root root 1891 Aug 9 2009 spamassassin
-rwxr-xr-x 1 root root 3704 Mar 31 2010 ssh

I get that changing the cron to ".../init.d/spamassassin" will fix the startup problem. What I don't get is why it shouldn't be ".../spamd -d", and why the Debian dist-upgrade didn't take care of the cron entry... Thanks!!
Reply With Quote
  #5  
Old 5th August 2011, 16:03
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

1. it shouldn't be spamd -d .. because this way you're calling the daemon binary itself, and will not fork into the background, it'll stay in the foreground until you kill it (with f.e. CTRL-C).

2. The cron entry is something that you've added manually, the dist-upgrade will not change manually changed values/settings etc. You've added that entry, so it's you're responsibility to see if it still works.
Reply With Quote
  #6  
Old 5th August 2011, 16:10
VinceHeuser VinceHeuser is offline
Junior Member
 
Join Date: Aug 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Thanks for the advice!

I sure don't remember doing that myself... No matter... I will gratefully follow your advice. Thanks!!
Reply With Quote
  #7  
Old 5th August 2011, 16:19
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

Quote:
..I followed your ISP setup in Etch... and upgraded succesfully to Lenny...
SpamAssassin comes with ISPConfig2 .. so it's Falko's and/or Till's fault!!! ;-)
Reply With Quote
  #8  
Old 5th August 2011, 19:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by Mark_NL View Post
SpamAssassin comes with ISPConfig2 .. so it's Falko's and/or Till's fault!!! ;-)
But ISPConfig doesn't run it as a daemon...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 5th August 2011, 19:14
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
 
Default

Quote:
Originally Posted by falko View Post
But ISPConfig doesn't run it as a daemon...
Grrr, true .. most people switch to daemonized to save some resources on a busy server. only downside with ispc2 was that you'll lose the ability to supply user defined preferences for SA

Ah, you shouldn't run ispc2 anyway
Reply With Quote
Reply

Bookmarks

Tags
debian 6.0, spamassassin, spamd, squeeze

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[The Perfect Spamsnake Ubuntu 10.10] - No mail relay, just errors. itsnedkeren HOWTO-Related Questions 2 20th February 2011 10:45
Problems with my 'Perfect Server' chillifire Server Operation 3 6th January 2010 12:26
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
ISP Config hesitation when opening web pages frankb Installation/Configuration 7 15th December 2008 13:06
Question on Clamscan and SpamAssassin AZMel Installation/Configuration 3 11th January 2007 19:56


All times are GMT +2. The time now is 21:41.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.