Bug 521860 - Wrong init script exit status code
Wrong init script exit status code
Product: Fedora
Classification: Fedora
Component: openssh (Show other bugs)
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)
Last Closed: 2010-05-28 10:28:16 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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

Version-Release number of selected component (if applicable):

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

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