FS#27597 - spamassassin's spamd daemon fails to stop
Attached to Project:
Arch Linux
Opened by Kyle Kaminski (nfm) - Friday, 16 December 2011, 18:58 GMT
Last edited by Florian Pritz (bluewind) - Monday, 16 January 2012, 08:57 GMT
Opened by Kyle Kaminski (nfm) - Friday, 16 December 2011, 18:58 GMT
Last edited by Florian Pritz (bluewind) - Monday, 16 January 2012, 08:57 GMT
|
Details
I'm having an issue where spamd daemon fails to stop.
Looking at /etc/rc.d/spamd, I added a simple echo ${PID }
statement to print the result of:
PID=`pidof -o %PPID /usr/bin/vendor_perl/spamd` but for me it always comes out empty. So could this be the problem? |
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
PID=`pidof -o %PPID "/usr/bin/vendor_perl/spamd -d ${SPAMD_OPTS}"`
and it works for me now. I don't like it much, but I could not find a way to do an inexact match with pidof.
A commenter from an earlier bug report suggested something like this:
PID=`pgrep -f '^/usr/bin/vendor_perl/spamd'`
which also works.
Thanks for replying. I can confirm that:
PID=`pgrep -f '^/usr/bin/vendor_perl/spamd'`
works pretty well. I also found the previous bug report
FS#25043, sorry for the duplicate!Now I wonder why hasn't been this fixed yet? Hello? It's only a one-liner :).