[Dnsmasq-discuss] Is there a way to run dnsmasq in safe mode (no-fail)?

Olaf Hering olaf at aepfle.de
Thu May 27 22:07:45 UTC 2021

Am Sun, 23 May 2021 22:25:28 +0200
schrieb Geert Stappers via Dnsmasq-discuss <dnsmasq-discuss at lists.thekelleys.org.uk>:

>  I learnt it is already implemented

It is not. What they implemented, probably by doing copy&paste from sysv, does not help at all. There is zero need to run dnsmasq --test in this context, dnsmasq will fail either way. It might be that --test shows more helpful diagnostic, but according to dnsmasq(8) this is apparently not the case.

A 'systemctl restart dnsmasq.service' will stop the daemon, then try to run ExecStartPre, which may fail. As a result the service will not run, and the service will not be provided anymore.

What the OP was likely asking for is a way to have a verification prior the service is stopped. If that verification fails, the service must remain active in its current state.

This is certainly offtopic for this list. Instead it should be suggested as a new feature to the systemd developers - because it affects every service that can verify the configuration. I'm sure this idea came up before, not sure why systemd does not offer such a reliability feature already.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20210528/ccdd5cc3/attachment.sig>

More information about the Dnsmasq-discuss mailing list