This service will be undergoing maintenance at 00:00 UTC, 2016-08-01. It is expected to last about 1 hours
Bug 521675 - nfs init scripts return wrong exit codes
nfs init scripts return wrong exit codes
Product: Fedora
Classification: Fedora
Component: nfs-utils (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Steve Dickson
Fedora Extras Quality Assurance
Depends On:
Blocks: InitScriptsProject
  Show dependency treegraph
Reported: 2009-09-07 12:10 EDT by Yulia Kopkova
Modified: 2010-10-28 18:16 EDT (History)
2 users (show)

See Also:
Fixed In Version: nfs-utils-1.2.1-6.fc12
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-10-28 18:16:29 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:

Attachments (Terms of Use)

  None (edit)
Description Yulia Kopkova 2009-09-07 12:10:11 EDT
Description of problem:
According to
"service $SERVICE status" should return exit code "2" if program is dead and
/var/lock/subsys/cups file exists and "force-reload" option should be available.  

The reason of filling this is "InitScripts LSB compliance project"

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

How reproducible:

Steps to Reproduce:
1. service $SERVICE stop
   touch /var/lock/subsys/$SERVICE
   service $SERVICE status ; echo $?

2. service $SERVICE force-reload ; echo $?

Actual results:
1. $SERVICE is stopped

2. Usage: /etc/init.d/$SERVICE {start|stop|restart|condstart|condrestart|status|condstop}

Expected results:
1. $SERVICE dead but subsys locked

2. service $SERVICE force-reload ; echo $?
Reloading $SERVICE:                                       [  OK  ]

Additional info:
Comment 1 Yulia Kopkova 2009-09-17 08:26:06 EDT
3. One more thing:

Init scripts should also return code "4" if restarting service under
nonprivileged user:

su testuserqa -c "service $SERVICE restart"; echo $?
now: 1 
expected: 4
Comment 2 Yulia Kopkova 2009-09-24 13:06:53 EDT
4. Init script should return usage and exit code "2" for unknown argument:

# service $SERVICE unknown ; echo $?
Usage: nfs {start|stop|status|restart|reload|condrestart|condstop}
Comment 3 Bug Zapper 2009-11-16 07:01:32 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:
Comment 5 Fedora Update System 2010-10-20 10:45:28 EDT
nfs-utils-1.2.1-6.fc12 has been submitted as an update for Fedora 12.
Comment 6 Fedora Update System 2010-10-21 01:58:45 EDT
nfs-utils-1.2.1-6.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update nfs-utils'.  You can provide feedback for this update here:
Comment 7 Fedora Update System 2010-10-28 18:16:10 EDT
nfs-utils-1.2.1-6.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

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