RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1192926 - [nfslock service] service nfslock force-reload should not start the service if nfslock is not running
Summary: [nfslock service] service nfslock force-reload should not start the service i...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: nfs-utils
Version: 6.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact: Yongcheng Yang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-16 09:02 UTC by Yongcheng Yang
Modified: 2016-08-29 08:35 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-24 20:01:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Yongcheng Yang 2015-02-16 09:02:02 UTC
Description of problem:
"service nfslock force-reload" should not start the service if nfslock is not running.
As the LSB said "force-reload	cause the configuration to be reloaded if the service supports this, otherwise restart the service if it is running". But i find that the "force-reload" just acts the same as "restart" due to /etc/init.d/nfslock

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

How reproducible:
100%

Steps to Reproduce:
1.service nfslock stop
2.service nfslock force-reload
3.service nfslock status

Actual results:
[root@ibm-x3550m3-02 ~]# service nfslock stop
Stopping NFS statd: [  OK  ]
[root@ibm-x3550m3-02 ~]# service nfslock force-reload
Stopping NFS statd: [FAILED]
Starting NFS statd: [  OK  ]
[root@ibm-x3550m3-02 ~]# echo $?
0
[root@ibm-x3550m3-02 ~]# service nfslock status
rpc.statd (pid  25939) is running...
                          ^^^^^^^ should not start the service
[root@ibm-x3550m3-02 ~]# uname -r
2.6.32-504.el6.x86_64
[root@ibm-x3550m3-02 ~]# 


Expected results:
The "force-reload" does nothing when the nfs service is not running.

Additional info:
The same action on rhel7 not start the service if nfs-lock is not running

Comment 2 Steve Dickson 2015-02-16 12:57:42 UTC
*** Bug 1192929 has been marked as a duplicate of this bug. ***

Comment 3 Steve Dickson 2015-02-16 12:57:50 UTC
*** Bug 1192932 has been marked as a duplicate of this bug. ***

Comment 4 Steve Dickson 2015-02-16 12:58:00 UTC
*** Bug 1192935 has been marked as a duplicate of this bug. ***

Comment 5 Steve Dickson 2016-08-24 20:01:27 UTC
restart | force-reload | reload all do the same thing.


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