First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 32490
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: SpanKY <vapier@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: stuart2048 <stuart2048@hotmail.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 32490 depends on: Show dependency tree
Bug 32490 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-11-01 13:29 0000
When dhcpcd-1.3.22_p4-r1 received NTP information from its DHCP server,
it writes a new /etc/ntp.conf file.  However this ntp.conf file sets
the location of ntp.drift incorrectly.

The ntp-4.1.2.ebuild specifies that ntp.drift lives at /var/lib/ntp/ntp.drift.
However, dhcpcd sets the following

    driftfile /etc/ntp.drift

The result is that ntpd fails to write its driftfile, because the ntp daemon
does not have write permission to /etc.

The solution is to change dhcpcd's driftfile setting to /var/lib/ntp/ntp.drift,
in coordination with the ntp-4.1.2.ebuild.

The workaround to this problem is to edit "/etc/conf.d/net" and pass
the -N option to dhcdcd:

    iface_eth0="dhcp"
    dhcpcd_eth0="-N"

However, this means that my ntp.conf file must be maintained by hand
from now on.


Reproducible: Always
Steps to Reproduce:
1.  Fire up dhcpcd (*without* the -N parameter) and serve it some NTP options.
2.  Check the /etc/ntp.conf file to see the newly written settings.  You should
see "driftfile /etc/ntp.drift" somewhere in the config.
3.  Fire up "/etc/init.d/ntpd restart" and "tail -f /var/log/ntp.log".


Actual Results:  
If your ntp environment it set up correctly, you should eventually see
the following in your /var/log/ntp.log:

28 Oct 13:43:13 ntpd[24268]: can't open /etc/ntp.drift.TEMP: Permission denied
28 Oct 14:43:13 ntpd[24268]: can't open /etc/ntp.drift.TEMP: Permission denied
28 Oct 15:43:13 ntpd[24268]: can't open /etc/ntp.drift.TEMP: Permission denied

Notice that this error is repeated once per hour.

------- Comment #1 From SpanKY 2003-11-03 17:03:13 0000 -------
upgrade to dhcpcd-1.3.22_p4-r2

First Last Prev Next    No search results available      Search page      Enter new bug