Red Hat Bugzilla – Bug 190894
Unable to stop spamass-milter
Last modified: 2012-04-08 03:49:25 EDT
Description of problem:
Attepmpting to do a "service spamass-milter stop" fails - spamass-milter is
killed, but automatically restarted.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. With service running, issue "service spamass-milter stop" as superuser.
2. Stop reports success.
3. Check list of active process/root's email & see that /usr/sbin/spamass-
milter-wrapper automatically restarted the milter.
A controlable service.
/usr/sbin/spamass-milter-wrapper checks for /var/lock/subsys/spamass-milter to
determine if the service is to stop or if the milter
crashed. /etc/rc.d/init.d/spamass-milter does not unlink this file before
killing the process.
Patch /etc/rc.d/init.d/spamass-milter as follows:
> rm -f /var/lock/subsys/spamass-milter
< [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/spamass-milter
I can't actually reproduce this error here, but I can see the race condition and
how it could happen. I also agree with your suggested fix, which I'll make shortly.
The update has now reached the mirrors, so this should be fixed now. Please
repoen the bug if there's still an issue.
gdesklets-0.36.3-6.1.fc16 has been submitted as an update for Fedora 16.