Subject: sysv support to stubby (attached the necessary files)

From: Alexis PM <[email-masked]>
Date: Mon, 4 Apr 2022 15:23:46 +0000 (UTC)

Package: stubby
Version: 1.6.0-2
Severity: severe

Dear maintainer

The current stubby package in Debian and Devuan only works with systemd and has no sysv support, so it is unusable as there is no daemon running on a sysv system like Devuan.

I have reported this bug to Debian with normal severity and suggested backporting to the current stable: https://bugs.debian.org/1008931

For Devuan the category is severe because it makes the package unusable or mostly, and I consider that (rather than being an important package for security) the fixed package should be integrated in the main, update or security branch of stable, not in the optional and often disabled backports.

Add sysv support to stubby would simply be to replace or merge the postinst, prerm and postrm attachments (containing sysv support) in place/with the currently packaged ones (exclusively systemd, so direct replacement is feasible for Devuan) plus incorporate /etc/init.d/stubby (the attachment is renamed to _etc_init.d_stubby) into the package.

The original author of the named _etc_init.d_stubby is Marcos Del Sol Vives.

f10db4361797f339a6f911e42537cb361ec6b3e8156bfe44543d69a24a8c27ed _etc_init.d_stubby
47174daa8b7858e8716202b8e5ea5bc3f4a54d6141c2e043edd03020fbb9a2d8 postinst
da2820bb43519f8fad7e3f12bc117b970dc22997993b2814b3829949fea96f04 postrm
b25ae37f127ae7289eec246663e952094e88aad1bb04bbb0671d8e828585562c prerm

Thank you very much.

---

From: Alexis PM <[email-masked]>
Date: Mon, 4 Apr 2022 16:25:48 +0000 (UTC)

Sorry, I had to increase the S and K values in update-rc.d in postinst (which I re-attached).

Thank you very much.

PS:
f10db4361797f339a6f911e42537cb361ec6b3e8156bfe44543d69a24a8c27ed _etc_init.d_stubby
702e5a2e0367a922001362570ae5ccbd9faf79e27f017991ca882ae580ed6e7d postinst
da2820bb43519f8fad7e3f12bc117b970dc22997993b2814b3829949fea96f04 postrm
b25ae37f127ae7289eec246663e952094e88aad1bb04bbb0671d8e828585562c prerm

---

From: Alexis PM <[email-masked]>
Date: Mon, 4 Apr 2022 16:33:36 +0000 (UTC)

Severity: grave

---

From: Mark Hindley <[email-masked]>
Date: Mon, 4 Apr 2022 17:53:57 +0100

Control: forcemerge -1 676
Control: tags -1 debian
Control: forwarded -1 https://bugs.debian.org/1008931

Alexis

Thanks for this.

> Severity: severe

However stubby is not a forked package in Devuan and we use Debian's packages
directly without recompilation.

> The current stubby package in Debian and Devuan only works with systemd and
> has no sysv support, so it is unusable as there is no daemon running on a sysv
> system like Devuan.
> 
> I have reported this bug to Debian with normal severity and suggested
> backporting to the current stable: https://bugs.debian.org/1008931

Getting this fixed in Debian is therefore the correct way to go and Devuan will
automatically inherit the benefit.

Thanks.

Mark

---

From: Mark Hindley <[email-masked]>
Date: Mon, 4 Apr 2022 18:05:14 +0100

Alexis,

>     Sorry, I had to increase the S and K values in update-rc.d in postinst

As a side note, if you have having to fiddle with S and K values, then the LSB
header in the initscript is incomplete (probably missing one or more
dependencies). I am not even sure that current/recent version of update-rc.d
supports setting S and K values manually.

HTH

Mark

---

From: Alexis PM <[email-masked]>
Date: Mon, 4 Apr 2022 19:48:47 +0000 (UTC)

Attached reworked _etc_init.d_stubby by me trying to avoid third party authorship.

87f434c9b90ab10fb327762a24dc30af8190ee0d65d6e320bc463cf12df81918 _etc_init.d_stubby

Thank you very much.
     En lunes, 4 de abril de 2022, 18:25:48 CEST, Alexis PM <[email-masked]> escribió:  

Thank you very much.

PS:

---

From: Alexis PM <[email-masked]>
Date: Mon, 4 Apr 2022 19:59:30 +0000 (UTC)

> automatically inherit the benefit.

I suggest adopting/forking the package in Devuan at least to make the versions in stable and oldstable work, considering that the necessary work I have already done, it is an important package for security and it is a problem of lack of support for init alternatives to systemd (the proposed fix in Debian will not reach the stable versions of Devuan).

In any case, thanks for your interest.

---

From: Alexis PM <[email-masked]>
Date: Mon, 4 Apr 2022 20:10:14 +0000 (UTC)

>supports setting S and K values manually.

As I have just tested, it seems unnecessary to define the S and K values for stubby.
Note that the line
update-rc.d dnsmasq defaults 15 85 >/dev/null
is in the postinst of dnsmasq package in its current stable version.

Thank you for your comment.

---

From: Andrew Bower <[email-masked]>
Date: Tue, 22 Jul 2025 20:05:22 +0100

Hi Alexis,

Thanks for reporting this!

On Mon, Apr 04, 2022 at 03:23:46PM +0000, Alexis PM wrote:
> backporting to the current stable

The fix is now in the 'experimental' suite so won't make it to the
excalibur release, unfortunately.

If this package were backported to trixie-backports and therefore
excalibur-backports, would you install it from there?

> supports setting S and K values manually.

Thanks for providing a candidate initscript, Alexis! I created a new one
to modern Debian standards using init-d-script(5). As you can see from
https://sources.debian.org/src/getdns/1.7.3-1/debian/stubby.init/
there is very little needed for package maintainers to write nowadays.

Let us know how you get on with this if you get a chance!

Andrew