From f9e2715b300345a59606ab12cf100090a32e31e8 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Fri, 2 Jul 2021 15:03:47 +0200 Subject: [PATCH] bundles/systemd-networkd: removal of unmanaged files must also trigger restart of systemd-networkd --- bundles/systemd-networkd/items.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bundles/systemd-networkd/items.py b/bundles/systemd-networkd/items.py index b9de7f0..5f92f60 100644 --- a/bundles/systemd-networkd/items.py +++ b/bundles/systemd-networkd/items.py @@ -22,6 +22,12 @@ else: directories = { '/etc/systemd/network': { 'purge': True, + 'needed_by': { + 'svc_systemd:systemd-networkd', + }, + 'triggers': { + 'svc_systemd:systemd-networkd:restart', + }, }, }