Bug 117827

Summary: /etc/rc.d/rc fails always
Product: [Retired] Red Hat Raw Hide Reporter: Enrico Scholz <rh-bugzilla>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 7.47-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-03-16 23:44:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 114961    

Description Enrico Scholz 2004-03-08 23:59:28 UTC
Description of problem:

Last command in /etc/rc.d/rc is

| [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --quit

Therefore, the return code signals everytime an error which is not
very nice and can cause malfunctions e.g. in vserver startup.

Since the 'rhgb-client --quit' command fails on non-started rhgb
server, I suggest to rewrite the statement above to

| [ ! -x /usr/bin/rhgb-client -o ! -S /initrd/rhgb-socket ] ||
/usr/bin/rhgb-client --quit


A more simple solution would be to append a 'true' to the script.
Since there is no other indication about success/failure in the
script, this would not change the oeverall behavior.



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

initscripts-7.46-1.1

Comment 1 Enrico Scholz 2004-03-09 01:08:25 UTC
rc.sysinit is doing this already with

| # Let rhgb know that we're leaving rc.sysinit
| if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then
|     /usr/bin/rhgb-client --sysinit
| fi

so it should be no problem to apply this to 'rc' too (replace
--sysinit with --quit)

Comment 2 Bill Nottingham 2004-03-16 23:44:10 UTC
Fixed, will be in 7.47-1.