FS#25043 - [spamassassin] doesn`t stop

Attached to Project: Arch Linux
Opened by Filip (mezcal) - Wednesday, 06 July 2011, 18:50 GMT
Last edited by Florian Pritz (bluewind) - Monday, 16 January 2012, 08:57 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Paul Mattal (paul)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:

"/etc/rc.d/spamd stop" doesn`t stop spamd.

The problem is that "pidof -o %PPID /usr/bin/vendor_perl/spamd"
returns nothing.



Additional info:)
* package version(s): 3.3.2-2 i686
* config and/or log files etc.

This task depends upon

Closed by  Florian Pritz (bluewind)
Monday, 16 January 2012, 08:57 GMT
Reason for closing:  Fixed
Additional comments about closing:  spamassassin 3.3.2-3
Comment by Emil Micek (pantaril) - Wednesday, 13 July 2011, 07:25 GMT
I can confirm this bug.
As a temporary fix, i replaced the line

pidof -o %PPID /usr/bin/vendor_perl/spamd

with

if [ -f "/var/run/spamd.pid" ]
then
PID=`cat /var/run/spamd.pid`
fi

Additional info:
version: spamassassin 3.3.2-2
system: up-to-date 64bit arch
Comment by Mark J (mjcoder) - Wednesday, 27 July 2011, 20:21 GMT
pgrep also works and there's no need to add the "-r PIDFILE" option to spamd.

I replaced

PID=`pidof -o %PPID /usr/bin/vendor_perl/spamd`

with

PID=`pgrep -f '^/usr/bin/vendor_perl/spamd -d'`

I think pidof is returning nothing because spamd is launched by /usr/bin/perl. If you do a pidof /usr/bin/perl, you'll see the pid of spamd returned (along with all other perl PIDs). Obviously, that is not a solution to this issue.

pgrep let's you search the entire commandline with -f.

Loading...