I believe I've got both 1 & 2 taken care of in a local build that I'm about to push into rawhide: $ service cpuspeed blowup Usage: /etc/init.d/cpuspeed {start|stop|restart|condrestart|status} $ echo $? 2 $ service cpuspeed start Insufficient privileges to start cpuspeed service: [FAILED] $ echo $? 4 Also adding misc other lsb compliance bits, per bug 246895.
This request was evaluated by Red Hat Product Management for inclusion, but this component is not scheduled to be updated in the current Red Hat Enterprise Linux release. If you would like this request to be reviewed for the next minor release, ask your support representative to set the next rhel-x.y flag to "?".
cpuspeed-1.2.1-9.el5 Not sure: * Return codes of the script: 1 generic or unspecified error 3 unimplemented feature because test /CoreOS/cpuspeed/Regression/initscript failed on these two cases. - service cpuspeed start got return value 0 when removing cpufrep kernel module and 1 is expected - test takes 'reload' as an unimplemented feature, but service cpuspeed reload works just as restart Verified: * Return codes of the status command: 0 program is running or service is OK 1 program is dead and /var/run pid file exists 2 program is dead and /var/lock lock file exists 3 program is stopped * Return codes of the script: 2 invalid or excess argument(s) 4 user had insufficient privilege 5 program is not installed
We intentionally don't raise an alarm if cpuspeed doesn't start, because there's a lot of hardware that simply doesn't support it, and we enable the service by default. Raising an alarm on every system where cpuspeed couldn't start would add support call burden, and there's nothing we can do to fix (most) systems that don't support cpu frequency scaling. Not sure what the complaint about reload is. There's nothing to reload in most cases, because its not a daemon, its in-kernel freq scaling, so we just do the same thing as a restart. IMO, both of those can be ignored, things are operating as expected here.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: some exit status codes from the initscript were not in line with LSB standards. The codes were updated, and are now compliant. (BZ#495049)
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0035.html