* Flush the nscd hosts table after we've acquired an DHCP lease to
prevent problems with negative caching (NIXOS-45). svn path=/nixos/trunk/; revision=7763
This commit is contained in:
parent
836789a8a6
commit
5d883cbb85
@ -62,7 +62,7 @@ import ../helpers/make-etc.nix {
|
|||||||
{ # Dhclient hooks for emitting ip-up/ip-down events.
|
{ # Dhclient hooks for emitting ip-up/ip-down events.
|
||||||
source = pkgs.substituteAll {
|
source = pkgs.substituteAll {
|
||||||
src = ./etc/dhclient-exit-hooks;
|
src = ./etc/dhclient-exit-hooks;
|
||||||
inherit (pkgs) upstart;
|
inherit (pkgs) upstart glibc;
|
||||||
};
|
};
|
||||||
target = "dhclient-exit-hooks";
|
target = "dhclient-exit-hooks";
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,7 @@ echo "$reason" >> /tmp/dhcp-exit
|
|||||||
echo "$exit_status" >> /tmp/dhcp-exit
|
echo "$exit_status" >> /tmp/dhcp-exit
|
||||||
|
|
||||||
if test "$reason" = BOUND -o "$reason" = REBOOT; then
|
if test "$reason" = BOUND -o "$reason" = REBOOT; then
|
||||||
|
@glibc@/sbin/nscd --invalidate hosts
|
||||||
@upstart@/sbin/initctl emit ip-up
|
@upstart@/sbin/initctl emit ip-up
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user