Bug 521860

Summary: Wrong init script exit status code
Product: [Fedora] Fedora Reporter: Eduard Benes <ebenes>
Component: opensshAssignee: Jan F. Chadima <jchadima>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dkovalsk, jchadima, mgrepl, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 539457 (view as bug list) Environment:
Last Closed: 2010-05-28 10:28:16 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 521669, 539457    

Description Eduard Benes 2009-09-08 10:40:13 EDT
Description of problem:
Testing init script according to guidelines at [1] shows following results:
Wrong value to indicate status ->  "program is dead and /var/lock lock file exists". This should return exit status code 2(dead & lock), not 3(dead).

# ll /var/lock/subsys/sshd 
-rw-r--r--. 1 root root 0 2009-09-08 08:55 /var/lock/subsys/sshd
# service sshd status ; echo $?
openssh-daemon is stopped
3

Version-Release number of selected component (if applicable):
openssh-server-5.2p1-23.fc12

Actual results:
RC -> 3

Expected results:
RC -> 2

Additional info:
[1] - https://fedoraproject.org/wiki/FCNewInit/Initscripts
Comment 1 Jan F. Chadima 2009-09-24 08:37:37 EDT
Repaired
Comment 2 Bug Zapper 2009-11-16 07:03:42 EST
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping