Package: acpid
Version: 1.0.6-5.1
Severity: important
Tags: patch
Please add the "--oknodo" option to start-stop-daemon in the init
scripts start section.
From Debian policy:
The init.d scripts must ensure that they will behave sensibly if invoked
with start when the service is already running, or with stop when it
isn't, and that they don't kill unfortunately-named user processes. The
best way to achieve this is usually to use start-stop-daemon.
diff -Nur acpid-1.0.6.orig/debian/acpid.init.d acpid-1.0.6/debian/acpid.init.d
--- acpid-1.0.6.orig/debian/acpid.init.d 2008-04-12 21:18:38.000000000
+0200
+++ acpid-1.0.6/debian/acpid.init.d 2008-04-13 00:49:33.442395147 +0200
@@ -76,7 +76,7 @@
start)
[ -f /proc/modules ] && load_modules
log_begin_msg "Starting Advanced Configuration and Power Interface
daemon..."
- start-stop-daemon --start --quiet --exec /usr/sbin/acpid -- -c
/etc/acpi/events $OPTIONS
+ start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/acpid -- -c
/etc/acpi/events $OPTIONS
log_end_msg $?
;;
stop)