[Pkg-dns-devel] Bug#826241: Bug#826241: Bug#826241: unbound: Provide $named facility under systemd

Michael Biebl biebl at debian.org
Sun Jun 5 20:34:31 UTC 2016


Hi

Am 04.06.2016 um 23:23 schrieb Michael Biebl:
> Control: tags -1 - patch
> 
> Am 04.06.2016 um 22:50 schrieb Michael Biebl:
>> I think we should have a working solution now, so I'm tentatively
>> marking this bug with patch-available. 
> 
> Hm, looks like there is still a deadlock situation with the service
> files I attached earlier. Therefor removing the patch tag again for now.
> Will investigate.

Ok, I guess I have the missing ingredient now. We need to make the
unbound-resolvconf.service unit use Type=simple not oneshot.
oneshot blocks until the started process has completed, with Type=simple
we don't block.

Also (and this is stolen from bind9), we probably want

[Install]
WantedBy=unbound.service

This makes sure when unbound.service is started, the resolvconf service
is as well.
Using PartOf=unbound.service only takes care of the stop and restart case.

With that all said, attached is an updated unbound-resolvconf.service,
which should work properly.

Regards,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
[Unit]
Description=Unbound DNS server via resolvconf
After=unbound.service
PartOf=unbound.service
ConditionFileIsExcutable=/sbin/resolvconf

[Service]
ExecStart=/usr/lib/unbound/package-helper resolvconf_start
ExecStop=/usr/lib/unbound/package-helper resolvconf_stop

[Install]
WantedBy=unbound.service
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-dns-devel/attachments/20160605/63ad60c2/attachment.sig>


More information about the pkg-dns-devel mailing list