Red Hat Bugzilla – Bug 345611
spew when machine doesn't support acpi
Last modified: 2007-11-30 17:12:19 EST
If running on a machine that doesn't support ACPI (such as qemu/kvm virtual
machines), the acpi initscript spews
/etc/init.d/acpid: need ACPI_PROC_EVENT support in kernel. //zmena podle 260181
It should probably just silently not start if the /proc/acpi dir doesn't exist.
While cosmetic, this is highly visible with the Fedora 8 live images in
situations that are likely to be tried by reviewers, etc.
I'm not sure, if it is good to do not print anything. Because if no message is
printed, then someone can assume that everything is fine. I think better
solution is print "Starting acpid daemon [failure]" and in /var/log/messages
have more info about a problem.
The normal behavior of many services is "hardware not present, initscript exits
early and silently".
So basically very early in the initscript, just
[ -d /proc/acpi ] || exit 0
New build should show up in tomorrow's rawhide.