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
Opened by Filip (mezcal) - Wednesday, 06 July 2011, 18:50 GMT
Last edited by Florian Pritz (bluewind) - Monday, 16 January 2012, 08:57 GMT
|
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
Monday, 16 January 2012, 08:57 GMT
Reason for closing: Fixed
Additional comments about closing: spamassassin 3.3.2-3
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
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.