Skip to content

Commit

Permalink
use 'nscd --invalidate hosts' instead of restarting nscd
Browse files Browse the repository at this point in the history
  • Loading branch information
jerith666 committed Sep 27, 2018
1 parent e318687 commit 5214655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/config/networking.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
Expand Down

0 comments on commit 5214655

Please sign in to comment.