how keep unbound up if internet down ?

Anand Buddhdev anandb at ripe.net
Wed Apr 24 14:40:39 UTC 2019


On 24/04/2019 16:23, sean darcy via Unbound-users wrote:

Hey Sean,

> Just added Restart=on-abort to unbound.service.
> 
> But that made me realize another issue if you're depending on systemd
> and using a distribution, like I am : Fedora.
> 
> Any time unbound is upgraded ( And why is Fedora 29 still at 1.8.3 ? ),
> the unbound.service file can get replaced. So unless unbound.service is
> changed upstream to include Restart, it may happen at an upgrade.

You need to learn more about systemd. With systemd, you can have a local
override.

If you run "systemctl edit unbound.service" then it will open an editor
where you can add your "Restart=on-abort". This then gets merged with
the system-supplied unit. Your overlay is recorded in:

/etc/systemd/system/unbound.service.d/override.conf

Even if unbound is later upgraded, your local change persists.

Regards,
Anand



More information about the Unbound-users mailing list