Early abort of /etc/init.d/acpid because of non-zero exit status
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
acpid (Ubuntu) |
Invalid
|
Undecided
|
Daniel Hahler |
Bug Description
Binary package hint: acpid
Please apply the following patch in order not to have the given init script abort early because of non-zero exit status when $VERBOSE is not set to "no".
--- /etc/init.
+++ /etc/init.d/acpid 2005-11-29 22:49:43.966076152 +0100
@@ -25,7 +25,7 @@
# the ones listed in "MODULES".
load_modules() {
- [ "$VERBOSE" = no ] && echo "0 0 0 0" > /proc/sys/
+ [ "$VERBOSE" != no ] || echo "0 0 0 0" > /proc/sys/
@@ -48,10 +48,10 @@
for mod in $MODULES; do
- [ "$VERBOSE" != no ] && log_success_msg "Module already loaded: $mod"
+ [ "$VERBOSE" = no ] || log_success_msg "Module already loaded: $mod"
- if modprobe -b $mod 2>/dev/null; then
- [ "$VERBOSE" != no ] && log_success_msg "Loaded module: $mod"
+ if modprobe "$mod" 2>/dev/null; then
+ [ "$VERBOSE" = no ] || log_success_msg "Loaded module: $mod"
I cannot see a problem with using VERBOSE=yes in /etc/default/rcS and "sudo invoke-rc.d acpid restart" in Ubuntu Hardy (acpid 1.0.4-5ubuntu8)
Please explain the problem in more detail, if it still exists for you.
Thank you.