C
colonia27
Guest
Bitte sehr:Kannst Du mal mit "lsof -nP -p 9192" schauen, welche Dateien geöffnet sind?
Code:
/var/mod/root # lsof -nP -p 3455
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
chronyd 3455 root cwd DIR 31,0 208 257 /
chronyd 3455 root rtd DIR 31,0 208 257 /
chronyd 3455 root txt REG 31,0 160252 1442 /sbin/chronyd
chronyd 3455 root mem REG 31,0 22772 1365 /lib/ld-uClibc-0.9.29.so
chronyd 3455 root mem REG 31,0 2752 1061 /lib/libfreetz.so.1.0.0
chronyd 3455 root mem REG 31,0 108928 1250 /lib/libm-0.9.29.so
chronyd 3455 root mem REG 31,0 72908 1273 /lib/libgcc_s.so.1
chronyd 3455 root mem REG 31,0 694400 1333 /lib/libuClibc-0.9.29.so
chronyd 3455 root 0u unix 0x86cac680 25240 socket
chronyd 3455 root 1u inet 25273 UDP *:123
chronyd 3455 root 2u inet 25274 UDP 127.0.0.1:323
chronyd 3455 root 3u CHR 254,0 515 /dev/rtc
/var/mod/root #
Sorry, da hatte ich nicht richtig gelesen. Meinst du so?:@colonia27
Die Option -d ist dafür gedacht, daß man beim strace etwas sieht, nicht um den Fehler zu beheben.
Code:
/var/mod/root # strace /sbin/chronyd -f -d /var/tmp/chrony.conf
execve("/sbin/chronyd", ["/sbin/chronyd", "-f", "-d", "/var/tmp/chrony.conf"], [/* 213 vars */]) = 0
old_mmap(NULL, 20, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaad000
stat("/etc/ld-uClibc.so.cache", 0x7fc9b568) = -1 ENOENT (No such file or directory)
open("/mod/lib/libm.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libm.so.0", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=108928, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\25`\0\0\0004"..., 4096) = 4096
old_mmap(NULL, 172032, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aabe000
old_mmap(0x2aabe000, 98740, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aabe000
old_mmap(0x2aae7000, 488, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x19000) = 0x2aae7000
close(3) = 0
munmap(0x2aaae000, 4096) = 0
open("/mod/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libgcc_s.so.1", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=72908, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\32`\0\0\0004"..., 4096) = 4096
old_mmap(NULL, 139264, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aae8000
old_mmap(0x2aae8000, 68324, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aae8000
old_mmap(0x2ab09000, 2068, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x11000) = 0x2ab09000
close(3) = 0
munmap(0x2aaae000, 4096) = 0
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|0644, st_size=694400, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\2530\0\0\0004"..., 4096) = 4096
old_mmap(NULL, 737280, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ab0a000
old_mmap(0x2ab0a000, 640900, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2ab0a000
old_mmap(0x2abb6000, 8228, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x9c000) = 0x2abb6000
old_mmap(0x2abb9000, 18240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2abb9000
close(3) = 0
munmap(0x2aaae000, 4096) = 0
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|0644, st_size=694400, ...}) = 0
close(3) = 0
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|0644, st_size=694400, ...}) = 0
close(3) = 0
stat("/lib/ld.so.1", {st_mode=S_IFREG|0755, st_size=22772, ...}) = 0
mprotect(0x2abb6000, 4096, PROT_READ) = 0
mprotect(0x2aabc000, 4096, PROT_READ) = 0
ioctl(0, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
time([1279218823]) = 1279218823
time(NULL) = 1279218823
brk(0) = 0x439d00
brk(0x43ad00) = 0x43ad00
brk(0x43b000) = 0x43b000
write(2, "main.c", 6main.c) = 6
write(2, ":", 1:) = 1
write(2, "232", 3232) = 3
write(2, ":(", 2:() = 2
write(2, "main", 4main) = 4
write(2, ")[", 2)[) = 2
write(2, "15-18:33:43", 1115-18:33:43) = 11
write(2, "] ", 2] ) = 2
write(2, "Unrecognized command line option"..., 55Unrecognized command line option [/var/tmp/chrony.conf]) = 55
write(2, "\n", 1
) = 1
getuid() = 0
fork() = 4522
--- SIGCHLD (Child exited) @ 0 (0) ---
exit(0) = ?
/var/mod/root #
Code:
Jul 15 20:33:43 fritz daemon.info chronyd[4523]: chronyd version 1.23 starting
Jul 15 20:33:43 fritz daemon.err chronyd[4523]: Could not open configuration file [-d]
Jul 15 20:33:43 fritz daemon.info chronyd[4523]: Initial txc.tick=10000 txc.freq=0 (0.00000000) txc.offset=0 => hz=100 shift_hz=7
Jul 15 20:33:43 fritz daemon.info chronyd[4523]: set_config_hz=0 hz=100 shift_hz=7 basic_freq_scale=1.28000000 nominal_tick=10000 slew_delta_tick=833 max_tick_bias=1000
Jul 15 20:33:43 fritz daemon.info chronyd[4523]: Linux kernel major=2 minor=6 patch=19
Jul 15 20:33:43 fritz daemon.info chronyd[4523]: calculated_freq_scale=0.99902439 freq_scale=0.99902439
Wenn ich mit auskommentiertem rtc-file "/sbin/chronyd -f /var/tmp/chrony.conf" starte kommt ebenfalls nichts mit top und syslog sagt:Ansonsten würde ich es mal ohne rtcfile in der Konfiguration versuchen.
Code:
Jul 15 20:47:13 fritz daemon.info chronyd[5691]: chronyd version 1.23 starting
Jul 15 20:47:13 fritz daemon.info chronyd[5691]: Initial txc.tick=10000 txc.freq=-1314240 (-20.05371094) txc.offset=0 => hz=100 shift_hz=7
Jul 15 20:47:13 fritz daemon.info chronyd[5691]: set_config_hz=0 hz=100 shift_hz=7 basic_freq_scale=1.28000000 nominal_tick=10000 slew_delta_tick=833 max_tick_bias=1000
Jul 15 20:47:13 fritz daemon.info chronyd[5691]: Linux kernel major=2 minor=6 patch=19
Jul 15 20:47:13 fritz daemon.info chronyd[5691]: calculated_freq_scale=0.99902439 freq_scale=0.99902439
Jul 15 20:47:14 fritz daemon.info chronyd[5691]: System's initial offset : 0.000307 seconds slow of true (slew)
Jul 15 20:47:14 fritz daemon.warn chronyd[5691]: Could not send to 85.125.223.111 : Bad file descriptor
Jul 15 20:47:15 fritz daemon.warn chronyd[5691]: Could not send to 0.0.0.2 : Bad file descriptor
Jul 15 20:47:15 fritz daemon.warn chronyd[5691]: Could not send to 85.125.223.111 : Bad file descriptor
Jul 15 20:47:16 fritz daemon.warn chronyd[5691]: Could not send to 0.0.0.2 : Bad file descriptor
Jul 15 20:47:16 fritz daemon.warn chronyd[5691]: Could not send to 85.125.223.111 : Bad file descriptor
Jul 15 20:47:17 fritz daemon.warn chronyd[5691]: Could not send to 0.0.0.2 : Bad file descriptor
[EDIT] Ich hoffe das ist nicht relevant, aber die Box hängt an nem KabelDeutschland-Modem