aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Vas Dias <jvdias@redhat.com>2004-07-30 22:01:52 +0000
committerJason Vas Dias <jvdias@redhat.com>2004-07-30 22:01:52 +0000
commitcd54cb384af33f32513ac6316907e849e8e13df5 (patch)
treea30a03d78af56dedd356e631e0e8fd0a66da39c5
parent591483f13e955ba024d736da22e3747725c40fd3 (diff)
downloadinitscripts-cd54cb384af33f32513ac6316907e849e8e13df5.tar
initscripts-cd54cb384af33f32513ac6316907e849e8e13df5.tar.gz
initscripts-cd54cb384af33f32513ac6316907e849e8e13df5.tar.bz2
initscripts-cd54cb384af33f32513ac6316907e849e8e13df5.tar.xz
initscripts-cd54cb384af33f32513ac6316907e849e8e13df5.zip
fix for bug 125712: added change_resolv_conf function to network-functions; made ipup-post and ipdown-post invoke it
-rw-r--r--sysconfig/network-scripts/network-functions3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 76879cf4..c3160dbe 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -380,7 +380,8 @@ change_resolv_conf ()
r=$?
if [ $r -eq 0 ]; then
/sbin/initlog -f local7 -p notice -n NET -s "$0 : updated /etc/resolv.conf";
- /sbin/service nscd condrestart >/dev/null 2>&1;
+ /sbin/service nscd condrestart >/dev/null 2>&1; # remove when nscd is fixed!
+ [ -e /var/lock/subsys/nscd ] && /sbin/nscd -i hosts; # invalidate cache
return $?;
fi;
return $r;