Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ntp.conf always overwritten...
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
green sun
Guru
Guru


Joined: 04 Nov 2002
Posts: 325
Location: Wista, MA

PostPosted: Wed Feb 19, 2003 2:40 am    Post subject: ntp.conf always overwritten... Reply with quote

On each reboot, my ntp.conf is overwritten with the "default" one that is put in /etc when ntp is emerged. I have saved my ntp.conf to a back up, and have it copied back over the default one, but this is weird behavior. Anyone know what could be overwriting this file?
Back to top
View user's profile Send private message
guero61
l33t
l33t


Joined: 14 Oct 2002
Posts: 811
Location: Behind you

PostPosted: Wed Feb 19, 2003 4:42 pm    Post subject: Reply with quote

No idea. Try making it read-only; if what's deleting it is running as root, it won't make a difference, but it's worth a try...
Back to top
View user's profile Send private message
krusty_ar
Guru
Guru


Joined: 03 Oct 2002
Posts: 560
Location: Rosario, Argentina

PostPosted: Wed Feb 19, 2003 5:27 pm    Post subject: Reply with quote

I had the same problem with my pppoe.conf, i solved it commenting some init script that did just that, overwrite the file (dunno why tho).

i 've never submitted a but because i was so newbie
_________________
I am Beta, don't expect correct behaviour from me.
Take part of the adopt an unaswered post initiative
Back to top
View user's profile Send private message
jingo
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2002
Posts: 134
Location: Denmark

PostPosted: Wed Feb 19, 2003 9:49 pm    Post subject: Reply with quote

/etc/ntp.conf is overwritten by dhcpcd on startup.

edit /etc/conf.d/net

Code:
# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
iface_eth0="dhcp"
#dhcpcd_eth0="..."


to:

Code:
# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
iface_eth0="dhcp"
dhcpcd_eth0="-N"


the "-N" option prevents dhcpcd from overwriting your ntp.conf

try:

Code:
man dhcpcd
Back to top
View user's profile Send private message
green sun
Guru
Guru


Joined: 04 Nov 2002
Posts: 325
Location: Wista, MA

PostPosted: Thu Feb 20, 2003 2:13 am    Post subject: Reply with quote

jingo wrote:
/etc/ntp.conf is overwritten by dhcpcd on startup.

edit /etc/conf.d/net
<snip>


Wow.. cool. I just set this so my next reboot will tell if it works or not.
Back to top
View user's profile Send private message
quantus
n00b
n00b


Joined: 30 Jul 2002
Posts: 60

PostPosted: Fri Apr 04, 2003 3:35 am    Post subject: Doh... Reply with quote

Thanks!!! I was wondering who the culprit was... And yes it pays to search the forums first!
Back to top
View user's profile Send private message
papabean
Tux's lil' helper
Tux's lil' helper


Joined: 26 Oct 2002
Posts: 130
Location: Sacramento, California

PostPosted: Fri Apr 04, 2003 7:29 am    Post subject: Reply with quote

green sun wrote:
Quote:
Wow.. cool. I just set this so my next reboot will tell if it works or not.


As one who just made this change, I can affirm it works just fine. Your ntp.conf can now rest in safety.
_________________
-- The world is full of tough guys. It doesn't need me to be one too.
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