Bug 46464
Summary: | /etc/rc.d/init.d/ntpd chkconfig line starts too early | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Need Real Name <tom> |
Component: | ntp | Assignee: | Harald Hoyer <harald> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Brian Brock <bbrock> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 7.1 | CC: | blair, shishz |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2003-10-13 16:02:11 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Need Real Name
2001-06-28 21:49:55 UTC
*** Bug 44580 has been marked as a duplicate of this bug. *** should be fixed in ntp-4.1.0b-1 The solution I use for this is this: 1) Create two /etc/resolv.conf files, I call them /etc/resolv.conf_local_down and /etc/resolv.conf_local_up. The only difference between them is that one /etc/resolv.conf_local_up uses 127.0.0.1 as a name server and /etc/resolv.conf_local_down uses a nearby public name server. 2) Edit /etc/rc.d/init.d/named to move the proper /etc/resolv_conf.XXX to /etc/resolv.conf when the name server is started or stopped. Here's the diff to /etc/rc.d/init.d/named from bind-9.2.0-1 --- named.FCS Mon Nov 26 15:32:40 2001 +++ named Sat Dec 1 11:26:32 2001 @@ -49,6 +49,7 @@ RETVAL=1 fi [ $RETVAL -ne 0 ] && failure $"$base startup" + [ $RETVAL -eq 0 ] && cat /etc/resolv.conf_local_up > /etc/resolv.conf [ $RETVAL -eq 0 ] && touch /var/lock/subsys/named && success $"$base startup" echo return $RETVAL @@ -56,6 +57,7 @@ stop() { # Stop daemons. echo -n $"Stopping $prog: " + cat /etc/resolv.conf_local_down > /etc/resolv.conf killproc named RETVAL=$? [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/named Blair *** Bug 66161 has been marked as a duplicate of this bug. *** *** Bug 72128 has been marked as a duplicate of this bug. *** fix verified. |