Bug 521860 - Wrong init script exit status code
Wrong init script exit status code
Status: CLOSED WORKSFORME
Product: Fedora
Classification: Fedora
Component: openssh (Show other bugs)
12
All Linux
low Severity medium
: ---
: ---
Assigned To: Jan F. Chadima
Fedora Extras Quality Assurance
:
Depends On:
Blocks: InitScriptsProject 539457
  Show dependency treegraph
 
Reported: 2009-09-08 10:40 EDT by Eduard Benes
Modified: 2010-05-28 10:28 EDT (History)
4 users (show)

See Also:
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:


Attachments (Terms of Use)

  None (edit)
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

Note You need to log in before you can comment on or make changes to this bug.