Bug 1192929

Summary: [rpcgssd service] service rpcgssd force-reload should not start the service if rpcgssd is not running
Product: Red Hat Enterprise Linux 6 Reporter: Yongcheng Yang <yoyang>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED NOTABUG QA Contact: Yongcheng Yang <yoyang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.6CC: eguan
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-24 20:02:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yongcheng Yang 2015-02-16 09:14:23 UTC
Description of problem:
"service rpcgssd force-reload" should not start the service if rpcgssd 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/rpcgssd

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

How reproducible:
100%

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

Actual results:
[16:34:11 root@ ~~]# service_rpcgssd stop
Stopping RPC gssd: [  OK  ]
:: [   PASS   ] :: Service have to implement stop function (Expected 0, got 0)
--------------------------------------------------------------------------------
[16:34:11 root@ ~~]# service_rpcgssd condrestart
:: [   PASS   ] :: Service have to implement condrestart function (Expected 0, got 0)
--------------------------------------------------------------------------------
[16:34:11 root@ ~~]# service_rpcgssd try-restart
:: [   PASS   ] :: Service have to implement try-restart function (Expected 0, got 0)
--------------------------------------------------------------------------------
[16:34:12 root@ ~~]# service_rpcgssd force-reload
Stopping RPC gssd: [FAILED]
Starting RPC gssd: [  OK  ]
:: [   PASS   ] :: Service have to implement force-reload function (Expected 0, got 0)
--------------------------------------------------------------------------------
[16:34:12 root@ ~~]# service_rpcgssd status
rpc.gssd (pid 41006) is running...

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

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

Comment 2 Steve Dickson 2015-02-16 12:57:42 UTC

*** This bug has been marked as a duplicate of bug 1192926 ***

Comment 3 Steve Dickson 2016-08-24 20:02:03 UTC
restart | force-reload | reload all do the same thing