Package: sleepd Version: 1.7 Severity: normal Tags: patch The init script /etc/init.d/sleepd makes a call to the lsb init function killproc as sourced from //lib/lsb/init-functions without providing a signal argument as is expected by this function. The result is that calling /etc/init.d/sleepd stop or /etc/init.d/sleepd restart does not stop sleepd as expected and the folling error message is seen on the console:
/sbin/start-stop-daemon: signal value must be numeric or name of signal (KILL, INT, ...) Try `/sbin/start-stop-daemon --help' for more information. Attatched is a patch that adds 15 as the signal argument to send. The tested version of lsb-base is 3.2-3. Kevin -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (600, 'unstable'), (300, 'testing'), (200, 'stable'), (100, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.23-amd64.005 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) (ignored: LC_ALL set to en_GB) Shell: /bin/sh linked to /bin/bash Versions of packages sleepd depends on: ii libapm1 3.2.2-8.1 Library for interacting with APM d ii libc6 2.7-9 GNU C Library: Shared libraries ii libdbus-1-3 1.1.20-1 simple interprocess messaging syst ii libhal1 0.5.10+git20080301-1 Hardware Abstraction Layer - share ii lsb-base 3.2-3 Linux Standard Base 3.2 init scrip Versions of packages sleepd recommends: ii hal 0.5.10+git20080301-1 Hardware Abstraction Layer ii hibernate 1.97-1.1 smartly puts your computer to slee -- no debconf information
39c39 < killproc -p /var/run/$NAME.pid $DAEMON --- > killproc -p /var/run/$NAME.pid $DAEMON 15

