Openntpd startet nicht

xsapling

Mitglied
Mitglied seit
30 Jan 2005
Beiträge
755
Punkte für Reaktionen
0
Punkte
0
im aktuellen Build vom freetz-trunk will openntpd parout nicht starten:

Code:
Looking for user 'ntp' ... found
Starting ntp server...
 * Stopping multid ntp client...
dispatch_imsg in main: pipe closed
Terminating
done.

Ist das Problem bereits bekannt?
 
Bei mir startet und stoppt der schon, nur passt was an der Anzeige nicht.
 
Hatte vorhin auf meine 7270 den aktuellen freetz-trunk (2914) geflashed und hatte hinterher dasselbe Problem wie xsapling. Exakt die gleiche Fehlermeldung in mod.log. Bei dem Versuch, Openntpd über den Start-Button unter Dienste zu starten, sah es so aus, als würde der Dienst tatsächlich gestartet, jedenfalls gabs da keine Fehlermeldung. Es lief aber trotzdem nicht, habe ich mit ps nachgesehen.
Da ich noch andere Probleme mit der neuen Firmware hatte, die ich jetzt nicht lösen konnte, bin ich wieder zurück auf meiner alten Firmware (2807M).
 
bei mir steht er in der 7270 auf gestoppt. er läuft aber trotzdem. scheint also mit der status anzeige was nicht zu passen.

gruß
 
hier mal nen strace, wenn der openntpd nicht starten möchte.

Code:
execve("./rc.openntpd", ["./rc.openntpd", "start"], [/* 170 vars */]) = 0
old_mmap(NULL, 20, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaad000
open("/mod/lib/libc.so.0", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/lib/libc.so.0", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=427348, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\0\252\0\0004\0\0\0l"..., 4096) = 4096
old_mmap(NULL, 466944, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aabe000
old_mmap(0x2aabe000, 375716, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aabe000
old_mmap(0x2ab29000, 8076, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x5b000) = 0x2ab29000
old_mmap(0x2ab2b000, 18896, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ab2b000
close(3)                                = 0
mprotect(0x2aabe000, 375716, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
munmap(0x2aaae000, 4096)                = 0
stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0755, st_size=22664, ...}) = 0
mprotect(0x2ab29000, 4096, PROT_READ)   = 0
mprotect(0x2aabc000, 4096, PROT_READ)   = 0
mprotect(0x2aabe000, 375716, PROT_READ|PROT_EXEC) = 0
ioctl(0, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
getuid()                                = 0
brk(0)                                  = 0x4a8dd8
brk(0x4a9dd8)                           = 0x4a9dd8
brk(0x4aa000)                           = 0x4aa000
getpid()                                = 3534
rt_sigaction(SIGCHLD, {0x10000000, [], 0}, {SIG_DFL, [], 0}, 16) = 0
brk(0x4ab000)                           = 0x4ab000
getppid()                               = 3533
stat64(0x7fb02e5b, 0x7fb01938)          = 0
stat64(0x48aecc, 0x7fb01938)            = 0
open("./rc.openntpd", O_RDONLY|O_LARGEFILE) = 3
fcntl64(3, F_DUPFD, 10)                 = 10
close(3)                                = 0
fcntl64(10, F_SETFD, FD_CLOEXEC)        = 0
rt_sigaction(SIGINT, NULL, {SIG_DFL, [], 0}, 16) = 0
rt_sigaction(SIGINT, {SIG_DFL, ~[], SA_NOCLDWAIT|0x420014}, NULL, 16) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 16) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, ~[], 0}, NULL, 16) = 0
rt_sigaction(SIGTERM, NULL, {SIG_DFL, [], 0}, 16) = 0
rt_sigaction(SIGTERM, {SIG_DFL, ~[], 0}, NULL, 16) = 0
read(10, "#!/bin/sh\n\nDAEMON=openntpd\n\n. /et"..., 4095) = 1902
open("/etc/init.d/modlibrc", O_RDONLY|O_LARGEFILE) = 3
fcntl64(3, F_DUPFD, 10)                 = 11
close(3)                                = 0
fcntl64(11, F_SETFD, FD_CLOEXEC)        = 0
brk(0x4ac000)                           = 0x4ac000
read(11, "# Shell functions for the scripts"..., 4095) = 3220
brk(0x4ad000)                           = 0x4ad000
brk(0x4ae000)                           = 0x4ae000
stat64(0x4ab784, 0x7fb00928)            = 0
geteuid()                               = 0
stat64(0x4ab784, 0x7fb00928)            = 0
open("/mod/etc/conf/openntpd.cfg", O_RDONLY|O_LARGEFILE) = 3
fcntl64(3, F_DUPFD, 10)                 = 12
close(3)                                = 0
fcntl64(12, F_SETFD, FD_CLOEXEC)        = 0
brk(0x4af000)                           = 0x4af000
read(12, "export OPENNTPD_ENABLED='yes'\nexp"..., 4095) = 58
read(12, ""..., 4095)                   = 0
close(12)                               = 0
read(11, ""..., 4095)                   = 0
close(11)                               = 0
fcntl64(1, F_GETFL)                     = 0x2 (flags O_RDWR)
write(1, "Looking for user 'ntp' ... "..., 27Looking for user 'ntp' ... ) = 27
fork()                                  = 3535
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 3535
fcntl64(1, F_GETFL)                     = 0x2 (flags O_RDWR)
write(1, "found\n"..., 6found
)               = 6
fork()                                  = 3536
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 3536
fork()                                  = 3537
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 3537
fork()                                  = 3538
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 3538
--- SIGCHLD (Child exited) @ 0 (0) ---
fcntl64(1, F_GETFL)                     = 0x2 (flags O_RDWR)
write(1, "Starting ntp server...\n"..., 23Starting ntp server...
) = 23
fcntl64(1, F_GETFL)                     = 0x2 (flags O_RDWR)
write(1, " * Stopping multid ntp client...\n"..., 33 * Stopping multid ntp client...
) = 33
open("/dev/null", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3
fcntl64(1, F_DUPFD, 10)                 = 11
dup2(3, 1)                              = 1
close(3)                                = 0
fcntl64(2, F_DUPFD, 10)                 = 12
dup2(1, 2)                              = 2
stat64(0x4aafa4, 0x7fb007a0)            = 0
fork()                                  = 3543
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 3543
--- SIGCHLD (Child exited) @ 0 (0) ---
dup2(11, 1)                             = 1
close(11)                               = 0
dup2(12, 2)                             = 2
close(12)                               = 0
stat64(0x4aaf8c, 0x7fb00688)            = 0
stat64(0x4aafa4, 0x7fb007c8)            = 0
stat64(0x4aafbc, 0x7fb00de0)            = -1 ENOENT (No such file or directory)
stat64(0x4aafbc, 0x7fb00de0)            = -1 ENOENT (No such file or directory)
stat64(0x4aafbc, 0x7fb00de0)            = 0
fork()                                  = 3546
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 3546
--- SIGCHLD (Child exited) @ 0 (0) ---
fcntl64(1, F_GETFL)                     = 0x2 (flags O_RDWR)
write(1, "done.\n"..., 6done.
)               = 6
exit(0)                                 = ?

oder hier (mit aktiviertem usb-root):

Code:
/var/mod/root # strace /etc/init.d/rc.openntpd start
execve("/etc/init.d/rc.openntpd", ["/etc/init.d/rc.openntpd", "start"], [/* 170 vars */]) = 0
old_mmap(NULL, 20, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaad000
open("/mod/lib/libc.so.0", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/lib/libc.so.0", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=427348, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\0\252\0\0004\0\0\0l"..., 4096) = 4096
old_mmap(NULL, 466944, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aabe000
old_mmap(0x2aabe000, 375716, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aabe000
old_mmap(0x2ab29000, 8076, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x5b000) = 0x2ab29000
old_mmap(0x2ab2b000, 18896, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ab2b000
close(3)                                = 0
mprotect(0x2aabe000, 375716, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
munmap(0x2aaae000, 4096)                = 0
stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0755, st_size=22664, ...}) = 0
mprotect(0x2ab29000, 4096, PROT_READ)   = 0
mprotect(0x2aabc000, 4096, PROT_READ)   = 0
mprotect(0x2aabe000, 375716, PROT_READ|PROT_EXEC) = 0
ioctl(0, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
getuid()                                = 0
brk(0)                                  = 0x4a8dd8
brk(0x4a9dd8)                           = 0x4a9dd8
brk(0x4aa000)                           = 0x4aa000
getpid()                                = 6652
rt_sigaction(SIGCHLD, {0x10000000, [], 0}, {SIG_DFL, [], 0}, 16) = 0
brk(0x4ab000)                           = 0x4ab000
getppid()                               = 6651
stat64(0x7fd35e53, 0x7fd34928)          = 0
stat64(0x48aecc, 0x7fd34928)            = 0
open("/etc/init.d/rc.openntpd", O_RDONLY|O_LARGEFILE) = 3
fcntl64(3, F_DUPFD, 10)                 = 10
close(3)                                = 0
fcntl64(10, F_SETFD, FD_CLOEXEC)        = 0
rt_sigaction(SIGINT, NULL, {SIG_DFL, [], 0}, 16) = 0
rt_sigaction(SIGINT, {SIG_DFL, ~[], SA_NOCLDWAIT|0x420014}, NULL, 16) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 16) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, ~[], 0}, NULL, 16) = 0
rt_sigaction(SIGTERM, NULL, {SIG_DFL, [], 0}, 16) = 0
rt_sigaction(SIGTERM, {SIG_DFL, ~[], 0}, NULL, 16) = 0
read(10, "#!/bin/sh\n\nDAEMON=openntpd\n\n. /et"..., 4095) = 1902
open("/etc/init.d/modlibrc", O_RDONLY|O_LARGEFILE) = 3
fcntl64(3, F_DUPFD, 10)                 = 11
close(3)                                = 0
fcntl64(11, F_SETFD, FD_CLOEXEC)        = 0
brk(0x4ac000)                           = 0x4ac000
read(11, "# Shell functions for the scripts"..., 4095) = 3220
brk(0x4ad000)                           = 0x4ad000
brk(0x4ae000)                           = 0x4ae000
stat64(0x4ab784, 0x7fd33918)            = 0
geteuid()                               = 0
stat64(0x4ab784, 0x7fd33918)            = 0
open("/mod/etc/conf/openntpd.cfg", O_RDONLY|O_LARGEFILE) = 3
fcntl64(3, F_DUPFD, 10)                 = 12
close(3)                                = 0
fcntl64(12, F_SETFD, FD_CLOEXEC)        = 0
brk(0x4af000)                           = 0x4af000
read(12, "export OPENNTPD_ENABLED='yes'\nexp"..., 4095) = 58
read(12, ""..., 4095)                   = 0
close(12)                               = 0
read(11, ""..., 4095)                   = 0
close(11)                               = 0
fcntl64(1, F_GETFL)                     = 0x2 (flags O_RDWR)
write(1, "Looking for user 'ntp' ... "..., 27Looking for user 'ntp' ... ) = 27
fork()                                  = 6653
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6653
fcntl64(1, F_GETFL)                     = 0x2 (flags O_RDWR)
write(1, "found\n"..., 6found
)               = 6
fork()                                  = 6654
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6654
fork()                                  = 6655
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6655
fork()                                  = 6656
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6656
--- SIGCHLD (Child exited) @ 0 (0) ---
fcntl64(1, F_GETFL)                     = 0x2 (flags O_RDWR)
write(1, "Starting ntp server...\n"..., 23Starting ntp server...
) = 23
fcntl64(1, F_GETFL)                     = 0x2 (flags O_RDWR)
write(1, " * Stopping multid ntp client...\n"..., 33 * Stopping multid ntp client...
) = 33
open("/dev/null", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3
fcntl64(1, F_DUPFD, 10)                 = 11
dup2(3, 1)                              = 1
close(3)                                = 0
fcntl64(2, F_DUPFD, 10)                 = 12
dup2(1, 2)                              = 2
stat64(0x4aafa4, 0x7fd33790)            = 0
fork()                                  = 6661
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6661
--- SIGCHLD (Child exited) @ 0 (0) ---
dup2(11, 1)                             = 1
close(11)                               = 0
dup2(12, 2)                             = 2
close(12)                               = 0
stat64(0x4aaf8c, 0x7fd33678)            = 0
stat64(0x4aafa4, 0x7fd337b8)            = 0
stat64(0x4aafbc, 0x7fd33dd0)            = -1 ENOENT (No such file or directory)
stat64(0x4aafbc, 0x7fd33dd0)            = -1 ENOENT (No such file or directory)
stat64(0x4aafbc, 0x7fd33dd0)            = 0
fork()                                  = 6664
wait4(-1, dispatch_imsg in main: pipe closed
Lost child: child exited
Terminating
[{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6664
--- SIGCHLD (Child exited) @ 0 (0) ---
fcntl64(1, F_GETFL)                     = 0x2 (flags O_RDWR)
write(1, "done.\n"..., 6done.
)               = 6
exit(0)                                 = ?

Kann man damit etwas anfangen?
 
Zuletzt bearbeitet:
Hi,

Als ich gestern die 7170 meines Bruders neu aufgesetzt hab (2930er trunk) hatte ich das gleiche Problem...

Ein mkdir /mod/home/ntp hat allerding Wunder gewirkt, war nämlich keins da komischerweise...

Gruß

Peter
 
@vice_pres
Mit neuestem trunk, sollte nach "make openntpd-dirclean;make" das Verzeichnis beim Start des openntpd angelegt werden?

MfG Oliver
 
Hi Oliver,

Ja, hab das Ticket im Trac gesehen, bin mir allerdings nicht sicher ob ich vorher ein dirclean für openntpd gemacht habe. Aber das dürfte ja einige betreffen dann...

Eigentlich machts keinen Unterschied wenn ich das Verzeichniss erst zur Laufzeit erzeuge, oder?

Gruß

Peter
 
Nein. Genau das macht das init-Skript von openntpd auch, falls ich kein Fehler eingebaut hab. ;-)

MfG Oliver
 
Hi Oliver,

Nein, den Ordner hat das init.script nicht angelegt, hatte es auch von hand probiert zu starten von der Konsole - ebenfalls abgebrochen.

Ordner selber angelegt, Pfeil nach oben, enter - läuft.

Hab gerade mal reingeschaut:
Code:
start() {
        modlib_adduser ntp -G users -D -S -g "NTP daemon"

        # Setting permissions
        chown root /mod/home/ntp -R
        chmod 0700 /mod/home/ntp -R

Kein mkdir da ;)

Gruß

Peter
 
Hatte ich schon, ich hatte 2930 drauf. Allerdings nur in einem der beiden Ordner ein openntpd-dirclean gemacht, daher...

Gruß

Peter
 
hier mal nen strace, wenn der openntpd nicht starten möchte.

Code:
/var/mod/root # strace /etc/init.d/rc.openntpd start

Kann man damit etwas anfangen?

Das ist ein strace von dem Shell-Skript (/etc/init.d/rc.openntpd), das den Server startet. Das bringt nicht viel, da hat man mehr davon, wenn man es mit "sh -x" aufruft.

Wenn man noch den strace braucht, dann von dem Kommando, das den Server selbst startet.

Je nach Anwendung kann noch die Option -f interessant sein, die strace auch auf alle Unterprozesse ausführt. Die Option funktioniert allerdings nur mit geändertem Kernel.
 
hier das log:

Code:
6732  execve("/usr/sbin/ntpd", ["ntpd", "-s", "-f", "/mod/etc/ntpd.conf"], [/* 170 vars */]) = 0
6732  old_mmap(NULL, 20, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaad000
6732  open("/mod/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
6732  open("/lib/libgcc_s.so.1", O_RDONLY) = 3
6732  fstat(3, {st_mode=S_IFREG|0755, st_size=55452, ...}) = 0
6732  old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000
6732  read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\340\30\0\0004\0\0\0\334"..., 4096) = 4096
6732  old_mmap(NULL, 122880, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aabe000
6732  old_mmap(0x2aabe000, 53908, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aabe000
6732  old_mmap(0x2aadb000, 1052, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xd000) = 0x2aadb000
6732  close(3)                          = 0
6732  munmap(0x2aaae000, 4096)          = 0
6732  open("/mod/lib/libc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
6732  open("/lib/libc.so.0", O_RDONLY)  = 3
6732  fstat(3, {st_mode=S_IFREG|0755, st_size=427348, ...}) = 0
6732  old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000
6732  read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\0\252\0\0004\0\0\0l"..., 4096) = 4096
6732  old_mmap(NULL, 466944, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aadc000
6732  old_mmap(0x2aadc000, 375716, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aadc000
6732  old_mmap(0x2ab47000, 8076, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x5b000) = 0x2ab47000
6732  old_mmap(0x2ab49000, 18896, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ab49000
6732  close(3)                          = 0
6732  mprotect(0x2aadc000, 375716, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
6732  munmap(0x2aaae000, 4096)          = 0
6732  open("/mod/lib/libc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
6732  open("/lib/libc.so.0", O_RDONLY)  = 3
6732  fstat(3, {st_mode=S_IFREG|0755, st_size=427348, ...}) = 0
6732  close(3)                          = 0
6732  stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0755, st_size=22664, ...}) = 0
6732  mprotect(0x2ab47000, 4096, PROT_READ) = 0
6732  mprotect(0x2aabc000, 4096, PROT_READ) = 0
6732  mprotect(0x2aadc000, 375716, PROT_READ|PROT_EXEC) = 0
6732  ioctl(0, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
6732  ioctl(1, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
6732  brk(0)                            = 0x41ee50
6732  brk(0x41fe50)                     = 0x41fe50
6732  brk(0x420000)                     = 0x420000
6732  time(NULL)                        = 1230484054
6732  open("/etc/resolv.conf", O_RDONLY) = 3
6732  ioctl(3, TIOCNXCL, 0x7fe6f9b8)    = -1 ENOTTY (Inappropriate ioctl for device)
6732  read(3, "nameserver 192.168.180.1\nnameserv"..., 4096) = 50
6732  read(3, ""..., 4096)              = 0
6732  close(3)                          = 0
6732  open("/mod/etc/ntpd.conf", O_RDONLY|O_LARGEFILE) = 3
6732  ioctl(3, TIOCNXCL, 0x7fe6fad8)    = -1 ENOTTY (Inappropriate ioctl for device)
6732  brk(0x421000)                     = 0x421000
6732  read(3, "# Addresses to listen on (ntpd do"..., 4096) = 295
6732  brk(0x422000)                     = 0x422000
6732  read(3, ""..., 4096)              = 0
6732  close(3)                          = 0
6732  geteuid()                         = 0
6732  open("/etc/passwd", O_RDONLY)     = 3
6732  ioctl(3, TIOCNXCL, 0x7fe6fa88)    = -1 ENOTTY (Inappropriate ioctl for device)
6732  read(3, "root:x:0:0:root:/mod/root:/bin/sh"..., 4096) = 257
6732  close(3)                          = 0
6732  open("/dev/urandom", O_RDONLY|O_LARGEFILE) = 3
6732  socketpair(PF_FILE, SOCK_STREAM, 0, [4, 5]) = 0
6732  fork()                            = 6733
6732  open("/var/db/ntpd.drift", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
6732  rt_sigaction(SIGTERM, {0x10000000, [], 0x402660 /* SA_??? */}, {SIG_DFL, [], 0}, 16) = 0
6732  rt_sigaction(SIGINT, {0x10000000, [], 0x402660 /* SA_??? */}, {SIG_DFL, [], 0}, 16) = 0
6732  rt_sigaction(SIGCHLD, {0x10000000, [], 0x402660 /* SA_??? */}, {SIG_DFL, [], 0}, 16) = 0
6732  rt_sigaction(SIGHUP, {0x10000000, [], 0x402660 /* SA_??? */}, {SIG_DFL, [], SA_NOCLDSTOP}, 16) = 0
6732  close(5)                          = 0
6732  getpid()                          = 6732
6732  poll([{fd=4, events=POLLIN}], 1, 15000) = 1 ([{fd=4, revents=POLLIN|POLLHUP}])
6732  --- SIGCHLD (Child exited) @ 0 (0) ---
6732  sigreturn()                       = ? (mask now [EMT BUS SEGV PIPE ALRM WINCH STOP])
6732  read(4, ""..., 4096)              = 0
6732  brk(0x423000)                     = 0x423000
6732  ioctl(2147483647, TIOCNXCL, 0x7fe6f958) = -1 EBADF (Bad file descriptor)
6732  brk(0x424000)                     = 0x424000
6732  write(2, "dispatch_imsg in main: pipe close"..., 35) = 35
6732  wait4(6733, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], WNOHANG, NULL) = 6733
6732  ioctl(2147483647, TIOCNXCL, 0x7fe6f9c8) = -1 EBADF (Bad file descriptor)
6732  write(2, "Lost child: "..., 12)   = 12
6732  write(2, "child"..., 5)           = 5
6732  write(2, " exited\n"..., 8)       = 8
6732  rt_sigaction(SIGCHLD, {0x10000000, [], 0}, {0x10000000, [], 0x402660 /* SA_??? */}, 16) = 0
6732  wait4(-1,
 
Zuletzt bearbeitet:
Code:
6732  execve("/usr/sbin/ntpd", ["ntpd", "-s", "-f", "/mod/etc/ntpd.conf"], [/* 170 vars */]) = 0
6732  old_mmap(NULL, 20, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaad000
6732  open("/mod/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
6732  open("/lib/libgcc_s.so.1", O_RDONLY) = 3
6732  fstat(3, {st_mode=S_IFREG|0755, st_size=55452, ...}) = 0
6732  old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000
6732  read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\340\30\0\0004\0\0\0\334"..., 4096) = 4096
6732  old_mmap(NULL, 122880, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aabe000
6732  old_mmap(0x2aabe000, 53908, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aabe000
6732  old_mmap(0x2aadb000, 1052, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xd000) = 0x2aadb000
6732  close(3)                          = 0
6732  munmap(0x2aaae000, 4096)          = 0
6732  open("/mod/lib/libc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
6732  open("/lib/libc.so.0", O_RDONLY)  = 3
6732  fstat(3, {st_mode=S_IFREG|0755, st_size=427348, ...}) = 0
6732  old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000
6732  read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\0\252\0\0004\0\0\0l"..., 4096) = 4096
6732  old_mmap(NULL, 466944, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aadc000
6732  old_mmap(0x2aadc000, 375716, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aadc000
6732  old_mmap(0x2ab47000, 8076, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x5b000) = 0x2ab47000
6732  old_mmap(0x2ab49000, 18896, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ab49000
6732  close(3)                          = 0
6732  mprotect(0x2aadc000, 375716, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
6732  munmap(0x2aaae000, 4096)          = 0
6732  open("/mod/lib/libc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
6732  open("/lib/libc.so.0", O_RDONLY)  = 3
6732  fstat(3, {st_mode=S_IFREG|0755, st_size=427348, ...}) = 0
6732  close(3)                          = 0
6732  stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0755, st_size=22664, ...}) = 0
6732  mprotect(0x2ab47000, 4096, PROT_READ) = 0
6732  mprotect(0x2aabc000, 4096, PROT_READ) = 0
6732  mprotect(0x2aadc000, 375716, PROT_READ|PROT_EXEC) = 0
6732  ioctl(0, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
6732  ioctl(1, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
6732  brk(0)                            = 0x41ee50
6732  brk(0x41fe50)                     = 0x41fe50
6732  brk(0x420000)                     = 0x420000
6732  time(NULL)                        = 1230484054
6732  open("/etc/resolv.conf", O_RDONLY) = 3
6732  ioctl(3, TIOCNXCL, 0x7fe6f9b8)    = -1 ENOTTY (Inappropriate ioctl for device)
6732  read(3, "nameserver 192.168.180.1\nnameserv"..., 4096) = 50
6732  read(3, ""..., 4096)              = 0
6732  close(3)                          = 0
6732  open("/mod/etc/ntpd.conf", O_RDONLY|O_LARGEFILE) = 3
6732  ioctl(3, TIOCNXCL, 0x7fe6fad8)    = -1 ENOTTY (Inappropriate ioctl for device)
6732  brk(0x421000)                     = 0x421000
6732  read(3, "# Addresses to listen on (ntpd do"..., 4096) = 295
6732  brk(0x422000)                     = 0x422000
6732  read(3, ""..., 4096)              = 0
6732  close(3)                          = 0
6732  geteuid()                         = 0
6732  open("/etc/passwd", O_RDONLY)     = 3
6732  ioctl(3, TIOCNXCL, 0x7fe6fa88)    = -1 ENOTTY (Inappropriate ioctl for device)
6732  read(3, "root:x:0:0:root:/mod/root:/bin/sh"..., 4096) = 257
6732  close(3)                          = 0
6732  open("/dev/urandom", O_RDONLY|O_LARGEFILE) = 3
6732  socketpair(PF_FILE, SOCK_STREAM, 0, [4, 5]) = 0
6732  fork()                            = 6733
6732  open("/var/db/ntpd.drift", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
6732  rt_sigaction(SIGTERM, {0x10000000, [], 0x402660 /* SA_??? */}, {SIG_DFL, [], 0}, 16) = 0
6732  rt_sigaction(SIGINT, {0x10000000, [], 0x402660 /* SA_??? */}, {SIG_DFL, [], 0}, 16) = 0
6732  rt_sigaction(SIGCHLD, {0x10000000, [], 0x402660 /* SA_??? */}, {SIG_DFL, [], 0}, 16) = 0
6732  rt_sigaction(SIGHUP, {0x10000000, [], 0x402660 /* SA_??? */}, {SIG_DFL, [], SA_NOCLDSTOP}, 16) = 0
6732  close(5)                          = 0
6732  getpid()                          = 6732
6732  poll([{fd=4, events=POLLIN}], 1, 15000) = 1 ([{fd=4, revents=POLLIN|POLLHUP}])
6732  --- SIGCHLD (Child exited) @ 0 (0) ---
6732  sigreturn()                       = ? (mask now [EMT BUS SEGV PIPE ALRM WINCH STOP])
6732  read(4, ""..., 4096)              = 0
6732  brk(0x423000)                     = 0x423000
6732  ioctl(2147483647, TIOCNXCL, 0x7fe6f958) = -1 EBADF (Bad file descriptor)
6732  brk(0x424000)                     = 0x424000
6732  write(2, "dispatch_imsg in main: pipe close"..., 35) = 35
6732  wait4(6733, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], WNOHANG, NULL) = 6733
6732  ioctl(2147483647, TIOCNXCL, 0x7fe6f9c8) = -1 EBADF (Bad file descriptor)
6732  write(2, "Lost child: "..., 12)   = 12
6732  write(2, "child"..., 5)           = 5
6732  write(2, " exited\n"..., 8)       = 8
6732  rt_sigaction(SIGCHLD, {0x10000000, [], 0}, {0x10000000, [], 0x402660 /* SA_??? */}, 16) = 0
6732  wait4(-1,
 
Muss in der /var/db/ntpd.drift etwas besonderes stehen? Vielleicht fehlt nur der Pfad /var/db/ ?
 
Sollte man einen Unterschied zwischen Beitrag #14 und Beitrag #15 erwarten? Im Aufruf oder in der Ausgabe? Beim kurzen Durchsehen ist mir kein Unterschied aufgefallen.

Wenn Du "Replace Kernel" ausgewählt hast, dann rufe strace nochmal mit der Option -f auf. Der zuerst gestartete Prozeß ruft noch einen weiteren Prozeß auf, in dem die meiste Arbeit gemacht wird. Konkret ist hier das Problem, daß der zweite Prozeß einen Fehler hat und sich beendet.

Die Datei /var/db/ntpd.drift ist nicht das Problem, auch wenn es ganz nett wäre, den Inhalt dieser Datei persistent zu speichern. Die Datei enthält die Abweichung der internen Uhr.
 
Ich konnte den ntpd zuerst auch nicht starten. Nach folgenden Befehlen ging es dann:
Code:
mkdir -p /mod/home/ntp

# Setting permissions
chown root /mod/home/ntp -R
chmod 0700 /mod/home/ntp -R

/etc/init.d/rc.chrony stop
MfG Oliver
 
stimmt. wenn ich crony kille, dann läuft openntp ordentlich an.

Fragt sich nur, welche Auswirkungen es auf die Box hat, wenn cronyd gekillt wird ...
 
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.