Red Hat Bugzilla – Bug 117827
/etc/rc.d/rc fails always
Last modified: 2014-03-16 22:43:01 EDT
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 ] ||
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):
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
so it should be no problem to apply this to 'rc' too (replace
--sysinit with --quit)
Fixed, will be in 7.47-1.