From 521465596b178230ec46a3f0ab9026dac7cc58aa Mon Sep 17 00:00:00 2001 From: Matt McHenry Date: Wed, 26 Sep 2018 22:18:40 -0400 Subject: [PATCH] use 'nscd --invalidate hosts' instead of restarting nscd --- nixos/modules/config/networking.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/config/networking.nix b/nixos/modules/config/networking.nix index 427a6f4b5b109..108eaf55397ab 100644 --- a/nixos/modules/config/networking.nix +++ b/nixos/modules/config/networking.nix @@ -236,7 +236,7 @@ in '' + optionalString config.services.nscd.enable '' # Invalidate the nscd cache whenever resolv.conf is # regenerated. - libc_restart='${pkgs.systemd}/bin/systemctl try-restart --no-block nscd.service 2> /dev/null' + libc_restart='${pkgs.glibc.bin}/bin/nscd --invalidate hosts 2> /dev/null' '' + optionalString (length resolvconfOptions > 0) '' # Options as described in resolv.conf(5) resolv_conf_options='${concatStringsSep " " resolvconfOptions}'