Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ntp] le fichier de config se réécrit tout seul [résolu]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
PabOu
Veteran
Veteran


Joined: 11 Feb 2004
Posts: 1088
Location: Namur - Belgium

PostPosted: Fri Apr 15, 2005 3:44 pm    Post subject: [ntp] le fichier de config se réécrit tout seul [résolu] Reply with quote

j'utilise ntp pour faire un serveur de temps pour mon lan (sur la machine 192.168.0.10)... c'est egalement utile sur cette machine d'utiliser ntp car il ya un probleme avec l'horloge... enfin bref, voila mon fichier /etc/ntp.conf :

Code:
root@framboise ~ # cat /etc/ntp.conf
server ntp.nasa.gov
server time.chello.be
server ntp1.belbone.be

fudge 192.168.0.10 stratum 10

driftfile /etc/ntp/drift
broadcastdelay 0.008


le probleme c'est que parfois, ce fichier est effacé et remplacé par celui là :
Code:
root@framboise ~ # cat /etc/ntp.conf
restrict default noquery notrust nomodify
restrict 127.0.0.1
restrict 192.168.0.0 mask 255.255.255.0
fudge 127.127.1.0 stratum 3
server 127.127.1.0
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp.log


je le remarque surtout apres avoir rebooté la machine, l'heure n'est plus a jour et ne se remet pas a jour a cause du trop grand decalage, mais je ne suis pas sur que c'est a chaque fois a ce moment.

j'avoue que je ne comprends pas d'ou cela vient

j'ai reglé le probleme de l'heure au demarrage en utilisant ntp-client au demarrage avec l'option "-b server.ntp.sur.le.net"
ensuite je garde ntpd qui tourne en fond pour synchro mes autres machines...

qqun a une idée ?


Last edited by PabOu on Fri Apr 15, 2005 8:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Fri Apr 15, 2005 3:51 pm    Post subject: Reply with quote

t'utiliserais pas dhcp des fois ?

dans ton fichier de conf /etc/conf.d/net rajoute :

dhcpcd_ethX="-N"

man dhcpcd wrote:
-N Prevents dhcpcd from replacing existing /etc/ntp.conf file.

_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'
Back to top
View user's profile Send private message
PabOu
Veteran
Veteran


Joined: 11 Feb 2004
Posts: 1088
Location: Namur - Belgium

PostPosted: Fri Apr 15, 2005 4:00 pm    Post subject: Reply with quote

effectivement j'utilise dhcpcd :)

j'ai rajouté l'option, on va voir ce que ca donne :P

Merci !

Edit : c'est bon ;) merci !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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