Bug#921558: lsb-base: killproc does not pass name parameter to start-stop-daemon

Dmitry Bogatov <[email protected]> Wed, 13 Mar 2019 17:17:34 +0000
Newsgroups gmane.linux.debian.devel.lsb
Message-ID <E1h47VY-0007bE-QQ__10770.2646333323$1552497700$gmane$org@eggs.gnu.org>
[2019-03-11 21:51] Axel Beckert <[email protected]>
> > I believe it would be reasonable to add '--name $base' into `else'
> > clause. Opinions?
>
> Sounds sane, I just checked that with #924311 (miredo, uses
> start-stop-daemon directly, edited the init script) as well as #924312
> (stunnel4, by editing /lib/lsb/init-functions) and it worked in both
> cases.
>
> Here's the change I made to /lib/lsb/init-functions (as Dmitry already
> suggested):

Okay. Should I NMU or not? Anybody know what is the current status of
maintenance?

> --- /lib/lsb/init-functions~    2018-11-28 20:21:37.000000000 +0100
> +++ /lib/lsb/init-functions     2019-03-11 21:46:41.673767215 +0100
> @@ -141,7 +141,7 @@
>      if [ ! $pidfile ]; then
>          name_param=3D"--name $base --pidfile /var/run/$base.pid"
>      else
> -        name_param=3D"--pidfile $pidfile"
> +        name_param=3D"--name $base --pidfile $pidfile"
>      fi
>  =

>      sig=3D$(echo ${2:-} | sed -e 's/^-\(.*\)/\1/')
-- =

        Note, that I send and fetch email in batch, once every 24 hours.
                 If matter is urgent, try https://t.me/kaction
                                                                           =
  --