Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Solved: NTPD vs DHCPCD: dhcpcd always edits ntp.conf
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
haydongentoo
n00b
n00b


Joined: 17 Jan 2003
Posts: 23

PostPosted: Wed Sep 04, 2013 3:47 pm    Post subject: Solved: NTPD vs DHCPCD: dhcpcd always edits ntp.conf Reply with quote

I can't seem to stop dhcpcd from editing ntp.conf. My dhcp server is set to hand out an NTP server address however I don't want it on this particular host. (It happens to be the NTP server itself!) I get the following lines added:
Code:
# Generated by dhcpcd from eth0
server 192.168.1.9
# End of dhcpcd from eth0


In dhcpcd.conf I've commented:
Code:
#option ntp_servers


and added:
Code:
nohook ntp.conf


From reading I thought that nohook would do it but... Doesn't appear to be doing what I want. This is with:
dhcpcd-5.6.4
ntp-4.2.6_p5-r3

I assume I missed something. Can anyone point me in the right direction?


Last edited by haydongentoo on Thu Sep 05, 2013 3:01 am; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Wed Sep 04, 2013 11:04 pm    Post subject: Reply with quote

if you are using gentoo net scripts https://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=3&style=printable#doc_chap3 about nontp may help.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
haydongentoo
n00b
n00b


Joined: 17 Jan 2003
Posts: 23

PostPosted: Thu Sep 05, 2013 3:00 am    Post subject: Reply with quote

DONAHUE wrote:
if you are using gentoo net scripts https://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=3&style=printable#doc_chap3 about nontp may help.


Yup, that looks like it does it. Thank you!

Fun thing about Gentoo is that they keep adding things... :)

Edited /etc/conf.d/net and added:
Code:
dhcpcd_eth0="nontp"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum