From: Chris Lawrence Date: Thu, 27 Oct 2005 09:29:07 +0000 (-0400) Subject: lsb 3.0-11 Debian release. X-Git-Tag: archive/raspbian/10.2018112800+rpi1^2~255 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5fa88d6e1dcfb17f922f1eb889d6b4636134cbe5;p=lsb.git lsb 3.0-11 Debian release. --- diff --git a/debian/changelog b/debian/changelog index a53d915..4e13aa9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +lsb (3.0-11) unstable; urgency=low + + * Use the basename in killproc when calling start-stop-daemon. + (Closes: #332744) + * lsb-base conflicts/replaces lsb-core (<< 2.0-6). (Closes: #335798) + + -- Chris Lawrence Thu, 27 Oct 2005 05:29:07 -0400 + lsb (3.0-10) unstable; urgency=low * Use --name instead of --exec in killproc(). (Closes: #332744) diff --git a/debian/control b/debian/control index cb5907d..c8f2e5e 100644 --- a/debian/control +++ b/debian/control @@ -94,8 +94,8 @@ Description: Linux Standard Base 3.0 support package Package: lsb-base Architecture: all Depends: sed, ncurses-bin -Replaces: lsb (<< 2.0-6) -Conflicts: lsb (<< 2.0-6) +Replaces: lsb-core (<< 2.0-6), lsb (<< 2.0-6) +Conflicts: lsb-core (<< 2.0-6), lsb (<< 2.0-6) Priority: required Description: Linux Standard Base 3.0 init script functionality The Linux Standard Base (http://www.linuxbase.org/) is a standard diff --git a/init-functions b/init-functions index 35bcd55..22b41ad 100644 --- a/init-functions +++ b/init-functions @@ -94,7 +94,7 @@ pidofproc () { # start-stop-daemon uses the same algorithm as "pidofproc" above. killproc () { - local pidfile sig status + local pidfile sig status base set -- `POSIXLY_CORRECT=1 getopt "p:" $*` pidfile= @@ -105,19 +105,20 @@ killproc () { esac done + base=$(basename "$1") if [ ! $pidfile ]; then - pidfile=/var/run/$(basename "$1").pid + pidfile=/var/run/$base.pid fi 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 --name "$1" + /sbin/start-stop-daemon --stop --pidfile "$pidfile" --signal $sig --quiet --name "$base" status="$?" [ "$status" = 1 ] && return 3 # program is not running return 0 else - /sbin/start-stop-daemon --stop --pidfile "$pidfile" --retry 5 --quiet --oknodo --name "$1" + /sbin/start-stop-daemon --stop --pidfile "$pidfile" --retry 5 --quiet --oknodo --name "$base" fi }