Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77787 - spamassassin-3.0.2 does not correctly create pidfile
Summary: spamassassin-3.0.2 does not correctly create pidfile
Status: RESOLVED DUPLICATE of bug 70124
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL: http://bugzilla.spamassassin.org/show...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-12 23:51 UTC by Gary Pampara
Modified: 2005-07-19 07:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Pampara 2005-01-12 23:51:40 UTC
For some reason the spamassassin 3.0.2 build does not correctly create the needed pidfile so that the init script can stop the process

Reproducible: Always
Steps to Reproduce:
1. Start spamd /etc/init.d/spamd start
2. Stop spamd /etc/init.d/spamd {stop | restart}
3. Error spamd cannot be stopped

Actual Results:  
The process was still in the background running 

Expected Results:  
All spamd process should be stopped 

I played with the spamd binary and saw that `spamd  
--pidfile /var/run/spamd.pid` is not created.  
  
As a temporary workaround I have added to the spamd init.d script as the last 
action before the start() block ends: 
  
echo "`pidof spamd`" > /var/run/spamd.pid
Comment 1 Malte S. Stretz 2005-01-16 11:07:27 UTC
Probably bug 4074 (see URL) in the upstream Bugzilla.
Comment 2 Robert Burns 2005-01-26 19:45:37 UTC
I'm also observing the same problem with my upgrade from spamassassin v2.64 to v3.0.2 and wanted to add some information to this bug.

I'm running with qmail/vpopmail, using the following startup options, "-x -v -u vpopmail -m 5 -c -H" -- perhaps the "-u vpopmail" is unnecessary, but none the less, it would still be an issue because spamd would try to run as some other user than root.

Here is what syslog is reporting:

Jan 26 22:29:03 bob spamd[6914]: server started on port 783/tcp (running version 3.0.2-gr0)
Jan 26 22:29:03 bob spamd[6914]: server successfully spawned child process, pid 6919
Jan 26 22:29:03 bob spamd[6914]: server successfully spawned child process, pid 6920
Jan 26 22:29:03 bob spamd[6914]: server successfully spawned child process, pid 6921
Jan 26 22:29:03 bob spamd[6914]: server successfully spawned child process, pid 6922
Jan 26 22:29:03 bob spamd[6914]: server successfully spawned child process, pid 6923
Jan 26 22:29:03 bob spamd[6914]: Can't write to PID file: Permission denied

I solved the issue by creating a directory "/var/run/spamd", and chowned it vpopmail:vpopmail.  I then modified the "/etc/init.d/spamd" script such that the pidfile variable now looked like this: pidfile=/var/run/spamd/spamd.pid

Hope this helps.
Comment 3 Gary Pampara 2005-01-26 21:37:48 UTC
Hi,

That is my setup as well
Comment 4 Pedro Algarvio 2005-07-15 16:09:44 UTC
I have the same problem with spamassassin 3.0.4, as a workaround I also created
/var/run/spamd chowned to vpopmail:vpopmail and point the pid file into that
directory.

When will this be corrected??? We're now on version 3.0.4!
Comment 5 Michael Cummings (RETIRED) gentoo-dev 2005-07-19 07:53:01 UTC

*** This bug has been marked as a duplicate of 70124 ***