+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 <lawrencc@debian.org> Thu, 27 Oct 2005 05:29:07 -0400
+
lsb (3.0-10) unstable; urgency=low
* Use --name instead of --exec in killproc(). (Closes: #332744)
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
# 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=
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
}