Bug 117827 - /etc/rc.d/rc fails always
Summary: /etc/rc.d/rc fails always
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: initscripts
Version: 1.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks: FC2Blocker
TreeView+ depends on / blocked
 
Reported: 2004-03-08 23:59 UTC by Enrico Scholz
Modified: 2014-03-17 02:43 UTC (History)
1 user (show)

Fixed In Version: 7.47-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-03-16 23:44:10 UTC
Embargoed:


Attachments (Terms of Use)

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.


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