[Linux-bruxelles] Re: S23ntp-server
Didier MISSON
didier.misson at atofina.com
Mar 28 Sep 15:35:52 CEST 2004
un serveur en Debian Sarge.
J'ai installer ntp-server.
ça fonctionne évidemment impec, sauf une chose, que je ne comprend pas.
A l'installation, Debian a bien mis les liens dans les /etc/rcn.d
Par exemple, dans les /etc/rc2.d (et aussi dans rc3, rc4 et rc5) il y a
S23ntp-server -> ../init.d/ntp-server
ça semble logique.
Pourtant, au reboot, il n'y a JAMAIS de ntp-server actif !
Je trouve ceci dans /var/log/boot :
...
Tue Sep 7 15:26:25 2004: Setting the System Clock using the Hardware
Clock as r
eference...
Tue Sep 7 15:26:26 2004: System Clock set. Local time: Tue Sep 7
15:26:26 CEST
2004
Tue Sep 7 15:26:26 2004:
Tue Sep 7 15:26:26 2004: Initializing random number generator...done.
Tue Sep 7 15:26:26 2004: Recovering nvi editor sessions... done.
Tue Sep 7 15:26:26 2004: INIT: Entering runlevel: 2
Tue Sep 7 15:26:26 2004: Starting system log daemon: syslogd.
Tue Sep 7 15:26:26 2004: Starting kernel log daemon: klogd.
Tue Sep 7 15:26:26 2004: Starting MTA: exim4.
Tue Sep 7 15:26:27 2004: Starting mouse interface server: gpm.
Tue Sep 7 15:26:27 2004: Starting internet superserver: inetd.
Tue Sep 7 15:26:27 2004: Starting OpenBSD Secure Shell server: sshd.
Tue Sep 7 15:26:28 2004: Starting NTP server: ntpd.
Tue Sep 7 15:26:28 2004: Starting deferred execution scheduler: atd.
Tue Sep 7 15:26:28 2004: Starting periodic command scheduler: cron.
...
Donc, il a l'air de démarrer le ntpd
dans le /var/log/syslog je trouve :
Sep 7 15:26:28 abrusnmrtg2 ntpd[1724]: ntpd 4.2.0a at 1:4.2.0a-11-r Tue Jul
27 04:
55:54 CEST 2004 (1)
Sep 7 15:26:28 abrusnmrtg2 ntpd[1724]: precision = 3.000 usec
Sep 7 15:26:28 abrusnmrtg2 ntpd[1724]: Listening on interface wildcard,
0.0.0.0
#123
Sep 7 15:26:28 abrusnmrtg2 ntpd[1724]: Listening on interface wildcard,
::#123
Sep 7 15:26:28 abrusnmrtg2 ntpd[1724]: Listening on interface lo,
127.0.0.1#123
Sep 7 15:26:28 abrusnmrtg2 ntpd[1724]: Listening on interface eth0,
10.170.20.1
14#123
Sep 7 15:26:28 abrusnmrtg2 ntpd[1724]: kernel time sync status 0040
Sep 7 15:26:28 abrusnmrtg2 /usr/sbin/cron[1729]: (CRON) INFO (pidfile fd
= 3)
Sep 7 15:26:28 abrusnmrtg2 /usr/sbin/cron[1730]: (CRON) STARTUP (fork ok)
Sep 7 15:26:28 abrusnmrtg2 /usr/sbin/cron[1730]: (CRON) INFO (Running
@reboot j
obs)
Sep 7 15:26:28 abrusnmrtg2 ntpd[1724]: frequency initialized 0.955 PPM
from /va
r/lib/ntp/ntp.drift
Sep 7 15:26:28 abrusnmrtg2 ntpd[1724]: crypto_setup: random seed file
//.rnd not found
Pourtant il n'est pas (plus) en machine.
Je suis obligé de relancer manuellement le ntp
/etc/rc2.d/S23ntp-server start
Starting NTP server: ntpd.
ok, ntpd tourne.
Mais pourquoi impossible de l'avoir actif après le boot ?
Quand je reboot, RIEN ...
:-(
Une idée ?
Ou comment débuger ça ?
---------------------
Didier> voilà, j'ai trouvé... (pas compris, mais trouvé...)
J'aurais du faire + attention à la dernière ligne indiquant "crypto_setup:
random seed file //.rnd not found"
J'avais effectivement fait qques tests avec la crypto, les
authentifications.
J'ai mis en commentaire dans le /etc/ntp.conf les 2 lignes :
#added lines to switch on autokey usage:
#crypto pw tp_team_secret_key <----
#keysdir /etc/ntp/ <----
Depuis qu'elles sont en commentaire, qd le serveur reboot, le NTPD démarre
bien !
Mais pourquoi ???
car avant, ok, le ntpd s'arrettait !
Mais si je relançais manuellement /etc/init.d/ntp-server start
il démarrait correctement et restait en machine !
(oui, donc avec le MEME fichier de config)
Probablement aussi des questions d'autorisation ?
Le userid au démarrage ? il est sous root déjà ? ou c'est un id différent
?
mais en tout cas, problem solved !
closed.
--
Didier
Plus d'informations sur la liste de diffusion Linux-bruxelles