Commit 0c5719fe authored by Andreas Fuchs's avatar Andreas Fuchs
Browse files

Don't stop systemd-{networkd,resolved,udevd} on config switch

These daemons should not be stopped, as they're foundational to a
proper functioning of the system. When switching configurations, they
only need a restart instead of that stop/start cycle.
parent 6c82af44
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -463,6 +463,7 @@ in
    systemd.services.systemd-udevd = {
      restartTriggers = [ config.environment.etc."udev/rules.d".source ];
      notSocketActivated = true;
      stopIfChanged = false;
    };
  };

+1 −0
Original line number Diff line number Diff line
@@ -2902,6 +2902,7 @@ let
        ];
        aliases = [ "dbus-org.freedesktop.network1.service" ];
        notSocketActivated = true;
        stopIfChanged = false;
      };

      networking.iproute2 = mkIf (cfg.config.addRouteTablesToIPRoute2 && cfg.config.routeTables != { }) {
+1 −0
Original line number Diff line number Diff line
@@ -194,6 +194,7 @@ in
        wantedBy = [ "sysinit.target" ];
        aliases = [ "dbus-org.freedesktop.resolve1.service" ];
        restartTriggers = [ config.environment.etc."systemd/resolved.conf".source ];
        stopIfChanged = false;
      };

      environment.etc =