Red Hat Bugzilla – Bug 237753
Wrong init script
Last modified: 2014-11-09 17:30:39 EST
+++ This bug was initially created as a clone of Bug #237752 +++
Description of problem:
This construction returns error code 0 even when the service is not correctly
[ -x /usr/sbin/acpid ] || exit 0
[ -f /proc/acpi/event ] || exit 0
Also the status command (that should always return state of the service) is
ended withou even finding out the state.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. rename conf file/change permissions on binary
2. service acpid start
3. echo $?
correct error code
When fixing this bug, please obbey our init script guidelines and be sure that
status command is implemented correctly.
Our guidelines are on following two pages:
So what would you suggest how to fix it? We can't really run the initscript
without kernel support. And letting it always fail with an error if the kernel
doesn't support ACPI isn't really good either.
Read ya, Phil
Init script is fixed in devel.
*** Bug 237770 has been marked as a duplicate of this bug. ***
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 "?".