Skip to content

Commit

Permalink
Make systemd-resolved's config file a reload trigger
Browse files Browse the repository at this point in the history
It is documented to re-read its configuration file upon reload, so
we can simply reload it instead of restarting the whole daemon.
  • Loading branch information
antifuchs committed Jan 8, 2025
1 parent 0c5719f commit ad55e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/system/boot/resolved.nix
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ in
systemd.services.systemd-resolved = {
wantedBy = [ "sysinit.target" ];
aliases = [ "dbus-org.freedesktop.resolve1.service" ];
restartTriggers = [ config.environment.etc."systemd/resolved.conf".source ];
reloadTriggers = [ config.environment.etc."systemd/resolved.conf".source ];
stopIfChanged = false;
};

Expand Down

0 comments on commit ad55e1a

Please sign in to comment.