Bug 521650

Summary: initscripts for spamassassin daemon is not LSB compliant (service status when program is dead and /var/lock lock file exists)
Product: [Fedora] Fedora Reporter: Ales Zelinka <azelinka>
Component: spamassassinAssignee: Warren Togami <wtogami>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: kevin, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 530957 (view as bug list) Environment:
Last Closed: 2009-10-20 22:07:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 521669    

Description Ales Zelinka 2009-09-07 12:54:03 UTC
Description of problem:
According to https://fedoraproject.org/wiki/FCNewInit/Initscripts "service spamassassin
status" should return 2 when program is dead and /var/lock lock file exists.

Spamassassin service return 3 (which indicate stopped program with lock/pid cleaned
up)

Version-Release number of selected component (if applicable):
spamassassin-3.3.0-0.6.alpha2.fc12.x86_64

How reproducible:
always

Steps to Reproduce:
1.service spamassassin start
2.killall spamd
3.service spamassassin status ; echo $?
  
Actual results:
spamd is stopped
3

Expected results:
spamd dead but subsys locked
2


Additional info:
The correct exit code + error messages should be returned by "status" function
from /etc/init.d/functions. But it is not used, probably because of the
inconsistency between process names (spamd) and service name (spamassassin) that the "status" function can't handle.

Comment 1 Jason Tibbitts 2009-09-08 21:36:38 UTC
That's just a random page in the wiki.  It has no force as a guideline.  I can't comment on whether the things in there are even remotely good ideas, but don't go quoting random wiki pages as if anything is supposed to obey them.

Comment 2 Kevin Fenzi 2009-09-08 23:09:25 UTC
The real guideline page is https://fedoraproject.org/wiki/Packaging/SysVInitScript 
and the filed bugs do seem to be valid against that page... 

See/continue discussion in the blocking bug for this one?

Comment 3 Warren Togami 2009-10-20 22:07:26 UTC
Fixed in spamassassin-3.3.0