From 13d30fb9886ac88f650c6c02bb766f3c3abdc0c9 Mon Sep 17 00:00:00 2001 From: Chris Lawrence Date: Fri, 12 Aug 2005 15:18:39 -0500 Subject: [PATCH] lsb 3.0-5 Debian release. --- debian/changelog | 6 ++++++ init-functions | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 307cc0a..aa18c47 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +lsb (3.0-5) unstable; urgency=low + + * Use --exec in calls to start-stop-daemon in killproc(). (Closes: #322770) + + -- Chris Lawrence Fri, 12 Aug 2005 15:18:39 -0500 + lsb (3.0-4) unstable; urgency=medium * Fix LIBC setting; add Alpha support. (Closes: #322316) diff --git a/init-functions b/init-functions index 72435cb..22cfb18 100644 --- a/init-functions +++ b/init-functions @@ -113,12 +113,12 @@ killproc () { if [ $2 ]; then sig=$(echo $2 | sed -e 's/^-\(.*\)/\1/') sig=$(echo $sig | sed -e 's/^SIG\(.*\)/\1/') - /sbin/start-stop-daemon --stop --pidfile "$pidfile" --signal $sig --quiet + /sbin/start-stop-daemon --stop --pidfile "$pidfile" --signal $sig --quiet --exec "$1" status="$?" [ "$status" = 1 ] && return 3 # program is not running return 0 else - /sbin/start-stop-daemon --stop --pidfile "$pidfile" --retry 5 --quiet --oknodo + /sbin/start-stop-daemon --stop --pidfile "$pidfile" --retry 5 --quiet --oknodo --exec "$1" fi } -- 2.30.2