diff --git a/bundles/unbound/files/override.conf b/bundles/unbound/files/override.conf new file mode 100644 index 0000000..154df85 --- /dev/null +++ b/bundles/unbound/files/override.conf @@ -0,0 +1,3 @@ +[Unit] +After= +After=pppoe.service diff --git a/bundles/unbound/items.py b/bundles/unbound/items.py index 7c72825..03c4a60 100644 --- a/bundles/unbound/items.py +++ b/bundles/unbound/items.py @@ -50,3 +50,12 @@ if node.has_bundle('netdata'): 'svc_systemd:netdata:restart', }, } + +if node.has_bundle('pppd'): + files['/etc/systemd/system/unbound.service.d/bundlewrap.conf'] = { + 'source': 'override.conf', + 'triggers': { + 'action:systemd-reload', + 'svc_systemd:unbound:restart', + }, + }