tag 387433 patch usertag 387433 supplied-patch thanks Hi,
I have prepared an NMU which fixes this RC bug. The patch is attached and tested: Preparing to replace bluemon 1.3-1.1+b1 (using bluemon_1.3-1.2_i386.deb) ... Stopping bluemon: invoke-rc.d: initscript bluemon, action "stop" failed. dpkg: warning - old pre-removal script returned error exit status 1 dpkg - trying script from the new package instead ... dpkg: ... it looks like that went OK. Unpacking replacement bluemon ... Setting up bluemon (1.3-1.2) ... Installing new version of config file /etc/init.d/bluemon ... Starting bluemon: bluemon. As I am no DD I won't do the upload myself, but Bas will do it. Greetings Arjan
diff -u bluemon-1.3/debian/bluemon.init bluemon-1.3/debian/bluemon.init --- bluemon-1.3/debian/bluemon.init +++ bluemon-1.3/debian/bluemon.init @@ -38,8 +38,8 @@ ;; stop) echo -n "Stopping $DESC: " - start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ - --exec $DAEMON + start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ + --oknodo --exec $DAEMON echo "$NAME." ;; #reload) @@ -61,8 +61,8 @@ # just the same as "restart". # echo -n "Restarting $DESC: " - start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ - --exec $DAEMON + start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ + --oknodo --exec $DAEMON start-stop-daemon --start --quiet --pidfile \ /var/run/$NAME.pid --exec $DAEMON -- -t $THRESHOLD $BTIDS -i $INTERVAL $STDOUT $NOFORK $DISCONNECTHACK $QUALITY echo "$NAME." diff -u bluemon-1.3/debian/changelog bluemon-1.3/debian/changelog --- bluemon-1.3/debian/changelog +++ bluemon-1.3/debian/changelog @@ -1,3 +1,10 @@ +bluemon (1.3-1.2) unstable; urgency=medium + + * Non-maintainer upload. + * Don't fail when bluemon is already stopped. (Closes: #387433) + + -- Arjan Oosting <[EMAIL PROTECTED]> Fri, 29 Sep 2006 20:18:47 +0200 + bluemon (1.3-1.1) unstable; urgency=low * Non-maintainer upload. only in patch2: unchanged: --- bluemon-1.3.orig/debian/prerm +++ bluemon-1.3/debian/prerm @@ -0,0 +1,31 @@ +#! /bin/sh +# prerm script for bluemon +# +# see: dh_installdeb(1) + +set -e + +case "$1" in + failed-upgrade) + # exit when upgrading from broken version as init.d + # script is not replaced is. + if dpkg --compare-versions "$2" lt "1.3-1.2" ; then + exit 0 + fi + ;; + upgrade|remove|deconfigure) + ;; + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + +
signature.asc
Description: Dit berichtdeel is digitaal ondertekend