found 469167 3.2-3 tags 469167 patch thanks > Changes: > lsb (3.2-3) unstable; urgency=medium > . > * Handle missing $sig in killproc() properly. (Closes: #469167)
Still no luck:
pluto:~# apt-cache policy lsb-base
lsb-base:
Installiert:3.2-3
Mögliche Pakete:3.2-3
Versions-Tabelle:
*** 3.2-3 0
500 http://ftp.de.debian.org unstable/main Packages
100 /var/lib/dpkg/status
pluto:~# /etc/init.d/atd stop
Stopping deferred execution scheduler: atd/sbin/start-stop-daemon:
signal value must be numeric or name of signal (KILL, INT, ...)
Try `/sbin/start-stop-daemon --help' for more information.
The problem is in /lib/lsb/init-functions when sig is empty:
if [ -n "$sig" ]; then
/sbin/start-stop-daemon --stop --pidfile "$pidfile" ...
else
/sbin/start-stop-daemon --stop --signal "$sig" ...
fi
I think the test is inversed. Please review the attached patch.
Cheers,
Michael
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
--- init-functions.orig 2008-03-04 02:53:10.000000000 +0100
+++ init-functions 2008-03-04 02:53:19.000000000 +0100
@@ -119,7 +119,7 @@
[ -n "$sig" -o "$sig" = 15 -o "$sig" = TERM ] && is_term_sig=yes
status=0
if [ ! "$is_term_sig" = yes ]; then
- if [ -n "$sig" ]; then
+ if [ -z "$sig" ]; then
/sbin/start-stop-daemon --stop --pidfile "$pidfile" --quiet $name_param || status="$?"
else
/sbin/start-stop-daemon --stop --signal "$sig" --pidfile "$pidfile" --quiet $name_param || status="$?"
signature.asc
Description: OpenPGP digital signature

