View previous topic :: View next topic |
Author |
Message |
green sun Guru
Joined: 04 Nov 2002 Posts: 325 Location: Wista, MA
|
Posted: Wed Feb 19, 2003 2:40 am Post subject: ntp.conf always overwritten... |
|
|
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 |
|
|
guero61 l33t
Joined: 14 Oct 2002 Posts: 811 Location: Behind you
|
Posted: Wed Feb 19, 2003 4:42 pm Post subject: |
|
|
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 |
|
|
krusty_ar Guru
Joined: 03 Oct 2002 Posts: 560 Location: Rosario, Argentina
|
Posted: Wed Feb 19, 2003 5:27 pm Post subject: |
|
|
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 |
|
|
jingo Tux's lil' helper
Joined: 04 Dec 2002 Posts: 134 Location: Denmark
|
Posted: Wed Feb 19, 2003 9:49 pm Post subject: |
|
|
/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:
|
|
Back to top |
|
|
green sun Guru
Joined: 04 Nov 2002 Posts: 325 Location: Wista, MA
|
Posted: Thu Feb 20, 2003 2:13 am Post subject: |
|
|
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 |
|
|
quantus n00b
Joined: 30 Jul 2002 Posts: 60
|
Posted: Fri Apr 04, 2003 3:35 am Post subject: Doh... |
|
|
Thanks!!! I was wondering who the culprit was... And yes it pays to search the forums first! |
|
Back to top |
|
|
papabean Tux's lil' helper
Joined: 26 Oct 2002 Posts: 130 Location: Sacramento, California
|
Posted: Fri Apr 04, 2003 7:29 am Post subject: |
|
|
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 |
|
|
|