mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
Revert "resolvconf.conf: Remove forced NSCD service restart"
This reverts commit d8c16bc54a
. It
breaks nscd invalidation when the network configuration changes.
This commit is contained in:
parent
5abdde2a1c
commit
09cbfea2ed
1 changed files with 4 additions and 0 deletions
|
@ -247,6 +247,10 @@ in
|
|||
# a collision with an apparently unrelated environment
|
||||
# variable with the same name exported by dhcpcd.
|
||||
interface_order='lo lo[0-9]*'
|
||||
'' + 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'
|
||||
'' + optionalString (length resolvconfOptions > 0) ''
|
||||
# Options as described in resolv.conf(5)
|
||||
resolv_conf_options='${concatStringsSep " " resolvconfOptions}'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue