Red Hat Bugzilla – Bug 243700
Wrong init script
Last modified: 2014-02-10 18:03:31 EST
+++ This bug was initially created as a clone of Bug #243699 +++
Description of problem:
The rhnsd init script returns incorrect error codes and also some constructions
in it prevent the correct status command call. For example:
[ -x /usr/sbin/rhnsd ] || exit 0
[ -f /etc/sysconfig/rhn/systemid ] || exit 0
Also the script contains
which is IMHO configuration parameter that has nothing to do in the init script
and should be moved to conf file.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
When fixing this bug, please obbey our init script guidelines and be sure that
status command is run correctly.
Our guidelines are on following two pages:
For an example of the script that returns the error codes correctly and always
runs status see:
This bug is tracked by 237789.
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
does not exist!
INTERVAL is defined for some time in /etc/sysconfig/rhn/rhnsd
And if those files do not exist we return 6:
[ -x /usr/sbin/rhnsd ] || exit 6
[ -f /etc/sysconfig/rhn/systemid ] || exit 6
Not sure when it was fixed, but in RHEL 5.4