Package: sleepd Version: 1.3.6 Severity: normal
Hello, after upgrading from 1.3.5 dpkg couldn't start sleepd any longer, aborting with Starting sleep daemon: sleepd/usr/sbin/sleepd: invalid option -- F Usage: sleepd [-s command] [-d command] [-u n] [-U n] [-i n [-i n ..]] [-a] [-n] [-c n] [-b n] [-A] This is because my /etc/default/sleepd has a quoted --sleep-command option argument configured in the shell variable PARAMS: PARAMS="--ac-unused=0 --unused=600 --battery=5 --sleep-command='/usr/sbin/hibernate -F /etc/hibernate/hibernate.conf.ram.sleepd'" Passing this unquoted to the lsb function start_daemon results in the loss of the proper quotation and hence the error message. The easy fix is to quote "$PARAMS" when calling start_daemon, patch is attached. Kind regards WK -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16-2-686 Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages sleepd depends on: ii libapm1 3.2.2-8 Library for interacting with APM d ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries ii lsb-base 3.1-15 Linux Standard Base 3.1 init scrip Versions of packages sleepd recommends: pn apmd <none> (no description available) -- no debconf information
--- /etc/init.d/sleepd.dpkg-dist 2006-09-12 12:34:20.000000000 +0200 +++ /etc/init.d/sleepd 2006-09-12 12:48:10.000000000 +0200 @@ -40,7 +40,7 @@ case "$1" in test -e /dev/apm_bios && touch /dev/apm_bios log_daemon_msg "Starting sleep daemon" "sleepd" - start_daemon -p /var/run/$NAME.pid $DAEMON $PARAMS + start_daemon -p /var/run/$NAME.pid $DAEMON "$PARAMS" log_end_msg $? ;; stop)