Init script allows using "reload" operation, but usage listing of the script doesn't mention it. Version-Release number of selected component (if applicable): RHEL6.4-20121011.n.0 policycoreutils-newrole-2.0.83-19.26.el6.x86_64 policycoreutils-2.0.83-19.26.el6.x86_64 policycoreutils-gui-2.0.83-19.26.el6.x86_64 policycoreutils-sandbox-2.0.83-19.26.el6.x86_64 policycoreutils-python-2.0.83-19.26.el6.x86_64 Steps to Reproduce: * List operation of restorecond: tail -n 22 /etc/init.d/restorecond | grep '[ ]*[|a-zA-Z-]*)' | cut -d ')' -f 1 | tr '|' '\n' | tr -d ' ' | grep -v '*' | sort * List operation listed in usage: grep -i usage /etc/init.d/restorecond | cut -d '{' -f 2 | tr -d '}"' | tr '|' '\n' | sort Actual results: "reload" keyword is missing in usage Expected results: usage message is complete
"reload|force-reload" operations just do "restart". I am fixing usage.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release.
But the options are still in the init script. Is it ok to have this undocumented feature there? [root@dhcp-24-198 ~]# tail -n 22 /etc/init.d/restorecond | grep '[ ]*[|a-zA-Z-]*)' | cut -d ')' -f 1 | tr '|' '\n' | tr -d ' ' | grep -v '*' | sort condrestart force-reload reload restart start status stop [root@dhcp-24-198 ~]# grep -i usage /etc/init.d/restorecond | cut -d '{' -f 2 | tr -d '}"' | tr '|' '\n' | sort condrestart restart start status stop
According to Fedora wiki: The start, stop, restart, force-reload, and status actions shall be supported by all init scripts; the reload and the try-restart actions are optional. Other init-script actions may be defined by the init script. https://fedoraproject.org/wiki/FCNewInit/Initscripts#Init_Script_Actions Therefore I don't think that removing the functionality from init script is correct.
Karel, I am going to fix it because we need a new build related to another bug.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0396.html