[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: daemon ntp refuse de démarrer



Selon Aurélien Beaujean <aure@debian.org>:

> Le mardi 07 septembre 2004 à 16:23, spetrot@free.fr écrivait:
> > ntpq -p me dit :
> > ntpq: read: Connection refused
>
> En local ?
>
> > Et je n'ai rien de ntpd dans la liste des processus en cours.
>
> Ha. Essayes de le lancer à la main sans passer par le script d'init.
> Peut être que tu auras un erreur plus flagrante car dans les logs que tu
> as copié/collé il ne semble pas se plaindre.
>
> S'il ne se lances toujours pas tu peux essayer un strace pour voir où ça
> cooince...

Merci du conseil ; seulement, je n'ai jamais mis les mains dans strace et
lorsque je fais
strace -f -efile /etc/init.d/ntp-server start (sont-ce les bonnes options ?...)

je récupère un immonde charrabia que j'ai du mal à analyser (y a quand même un
"segmentation fault" à la fin qui me semble louche...). Au cas où, voilà le
charrabia (accrochez-vous) :


execve("/etc/init.d/ntp-server", ["/etc/init.d/ntp-server", "start"], [/* 13
vars */]) = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=19532, ...}) = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libncurses.so.5", O_RDONLY)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=252592, ...}) = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libdl.so.2", O_RDONLY)       = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=9872, ...}) = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1243856, ...}) = 0
open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3
open("/etc/mtab", O_RDONLY)             = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=165, ...}) = 0
open("/proc/meminfo", O_RDONLY)         = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
stat64("/etc/init.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/init.d/ntp-server", O_RDONLY|O_LARGEFILE) = 3
fstat64(255, {st_mode=S_IFREG|0755, st_size=757, ...}) = 0
stat64("/usr/sbin/ntpd", {st_mode=S_IFREG|0755, st_size=194488, ...}) = 0
Starting NTP server: ntpdstat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...})
= 0
stat64("/sbin/start-stop-daemon", {st_mode=S_IFREG|0755, st_size=18424, ...}) =
0
stat64("/sbin/start-stop-daemon", {st_mode=S_IFREG|0755, st_size=18424, ...}) =
0
Process 27040 attached
[pid 27040] --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
Process 27039 suspended
[pid 27040] execve("/sbin/start-stop-daemon", ["start-stop-daemon", "--start",
"--quiet", "--pidfile", "/var/run/ntpd.pid", "--exec", "/usr/sbin/ntpd", "--",
"-p", "/var/run/ntpd.pid"], [/* 11 vars */]) = 0
[pid 27040] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
[pid 27040] open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
[pid 27040] open("/etc/ld.so.cache", O_RDONLY) = 3
[pid 27040] fstat64(3, {st_mode=S_IFREG|0644, st_size=19532, ...}) = 0
[pid 27040] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
[pid 27040] open("/lib/libc.so.6", O_RDONLY) = 3
[pid 27040] fstat64(3, {st_mode=S_IFREG|0644, st_size=1243856, ...}) = 0
[pid 27040] stat64("/usr/sbin/ntpd", {st_mode=S_IFREG|0755, st_size=194488,
...}) = 0
[pid 27040] open("/var/run/ntpd.pid", O_RDONLY|O_LARGEFILE) = 3
[pid 27040] fstat64(3, {st_mode=S_IFREG|0644, st_size=5, ...}) = 0
[pid 27040] stat64("/proc/26985/exe", 0xbffffca0) = -1 ENOENT (No such file or
directory)
[pid 27040] chdir("/")                  = 0
[pid 27040] execve("/usr/sbin/ntpd", ["/usr/sbin/ntpd", "-p",
"/var/run/ntpd.pid"], [/* 11 vars */]) = 0
[pid 27040] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
[pid 27040] open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
[pid 27040] open("/etc/ld.so.cache", O_RDONLY) = 3
[pid 27040] fstat64(3, {st_mode=S_IFREG|0644, st_size=19532, ...}) = 0
[pid 27040] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
[pid 27040] open("/lib/libm.so.6", O_RDONLY) = 3
[pid 27040] fstat64(3, {st_mode=S_IFREG|0644, st_size=134464, ...}) = 0
[pid 27040] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
[pid 27040] open("/usr/lib/i686/cmov/libcrypto.so.0.9.7", O_RDONLY) = 3
[pid 27040] fstat64(3, {st_mode=S_IFREG|0644, st_size=1020392, ...}) = 0
[pid 27040] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
[pid 27040] open("/lib/libc.so.6", O_RDONLY) = 3
[pid 27040] fstat64(3, {st_mode=S_IFREG|0644, st_size=1243856, ...}) = 0
[pid 27040] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
[pid 27040] open("/lib/libdl.so.2", O_RDONLY) = 3
[pid 27040] fstat64(3, {st_mode=S_IFREG|0644, st_size=9872, ...}) = 0
Process 27041 attached
[pid 27041] --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
[pid 27041] chdir("/")                  = 0
[pid 27041] open("/dev/null", O_RDWR)   = 3
[pid 27041] fstat64(3, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
[pid 27041] open("/etc/localtime", O_RDONLY) = 4
[pid 27041] fstat64(4, {st_mode=S_IFREG|0644, st_size=1082, ...}) = 0
Process 27039 resumed
Process 27040 detached
[pid 27039] --- SIGCHLD (Child exited) @ 0 (0) ---



Reply to: