Merge pull request #85815 from arianvp/fix-85800
Fix networkd not restarting on unit changes
This commit is contained in:
commit
04e308a496
@ -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 {
|
||||||
|
@ -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" ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user