SA Bugzilla – Bug 4074
Spamd not creating PIDFILE
Last modified: 2005-07-02 15:02:00 UTC
I am running Slackware 10 and SpamAssassin 3.02. When I start spamd via the slackware-spamd.rc file that is included with the spamassassin distro spamd does not create the PIDFILE /var/run/spamd.pid. As a result I have to manually create the pidfile in order to stop spamassassin or restart it if I make a change to the local.cf file. Any ideas?
spamd warns if it can't write to the default or specified PID file. Check your maillog (or wherever spamd logs) for a "Can't write to PID file:" warning after starting spamd. Starting spamd directly, without daemonizing it, should print this warning to STDERR. Let us know what you find. Daryl
That is the wierd part, once spamd starts its runs fine without the pid. There is no error what so ever involving the pidfile until I try to restart or stop spamd. While spamd is running the maillog shows that spamd is running properlly and even shows which message is being scanned and what the score is. Even running spamd without the daemon shows the same thing with no mention of the pidfile being missing. I was playing around with some of the settings due to spamd causing a very large spike in I/O wait causing the machine to slow to a crawl. I disabled logging completely by setting -s null then I got the PIDFILE missing error on startup. So I set spamd to -s stderr 2>/dev/null, and started again and it started fine, again with no mention of the pidfile missing.
Query sent to Joseph.
Response from Joseph: > The problem disappeared when I installed the beta release of SpamAssassin. I am no longer having this issue, but when I revert back to 3.0.3 the problem reappears on one system only, but works fine on another running the same os and packages as the one in question. Therefore problem seems to still plague 3.0.3 unpredictably, but seems fixed in 3.1.0
Triage: closing as fixed since it appears to be fixed in 3.1.0.