Merge pull request #85815 from arianvp/fix-85800

Fix networkd not restarting on unit changes
This commit is contained in:
Florian Klink
2020-04-23 10:36:57 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
@@ -225,7 +225,7 @@ in {
Restart = "always"; Restart = "always";
RestartSec = 2; RestartSec = 2;
}; };
restartTriggers = [ datadogPkg ] ++ attrNames etcfiles; restartTriggers = [ datadogPkg ] ++ map (x: x.source) (attrValues etcfiles);
} attrs; } attrs;
in { in {
datadog-agent = makeService { datadog-agent = makeService {
+1 -1
View File
@@ -1073,7 +1073,7 @@ in
systemd.services.systemd-networkd = { systemd.services.systemd-networkd = {
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
restartTriggers = attrNames unitFiles; restartTriggers = map (x: x.source) (attrValues unitFiles);
# prevent race condition with interface renaming (#39069) # prevent race condition with interface renaming (#39069)
requires = [ "systemd-udev-settle.service" ]; requires = [ "systemd-udev-settle.service" ];
after = [ "systemd-udev-settle.service" ]; after = [ "systemd-udev-settle.service" ];