syslogd+ /var/log/messages file empty
greg h
grp62 at yahoo.fr
Thu May 14 07:47:46 UTC 2009
Denys,
thanks for your reply.
I also noticed that /dev/log was missing.
below the trace for strace logger "hello"
###################################################
# strace logger "hello"
execve("/usr/bin/logger", ["logger", "hello"], [/* 15 vars */]) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40005000
open("/lib/libc.so.0", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=239963, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40006000
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\20\200\0\0004\0\0\0\214"..., 4096) = 4096
mmap2(NULL, 290816, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000e000
mmap2(0x4000e000, 235450, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x4000e000
mmap2(0x4004f000, 4908, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x39) = 0x4004f000
mmap2(0x40051000, 13476, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40051000
close(3) = 0
munmap(0x40006000, 4096) = 0
stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0755, st_size=21168, ...}) = 0
mprotect(0x4004f000, 4096, PROT_READ) = 0
mprotect(0x4000c000, 4096, PROT_READ) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B115200 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B115200 opost isig icanon echo ...}) = 0
getuid32() = 0
geteuid32() = 0
brk(0) = 0xa0000
brk(0xa1000) = 0xa1000
open("/etc/passwd", O_RDONLY) = 3
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbeb13bac) = -1 ENOTTY (Inappropriate ioctl for device)
brk(0xa2000) = 0xa2000
read(3, "root:x:0:0:root:/root:/bin/sh\ndae"..., 4096) = 562
close(3) = 0
rt_sigaction(SIGPIPE, {0x4002a804, [], 0x4000000 /* SA_??? */}, {SIG_DFL, [], 0}, 8) = 0
socket(PF_FILE, SOCK_DGRAM, 0) = -1 ENOSYS (Function not implemented)
time([118]) = 118
open("/etc/TZ", O_RDONLY) = 3
read(3, "MST7MDT\n"..., 68) = 8
read(3, ""..., 60) = 0
close(3) = 0
rt_sigaction(SIGPIPE, {SIG_DFL, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
exit(0) = ?
#
###################################################
greg
________________________________
De : Denys Vlasenko <vda.linux at googlemail.com>
À : busybox at busybox.net
Cc : greg h <grp62 at yahoo.fr>
Envoyé le : Jeudi, 14 Mai 2009, 0h06mn 41s
Objet : Re: syslogd+ /var/log/messages file empty
On Wednesday 13 May 2009 15:19, greg h wrote:
> Hi all,
> Here is my configuration:
> Platform : arm-at91 (sam9260)
> Kernel: 2.6.28.1
> Buildroot: 2009.02
> Busybox: 1.13.2
>
> I noticed a problem with regards to the /var/log/messages file.
> Indeed this file is well created at startup but it is never updated (the size of this file is always at 0)
>
> my inittab
> # Logging junk
> null::sysinit:/bin/touch /var/log/messages
> null::respawn:/sbin/syslogd -n -m 0
> null::respawn:/sbin/klogd -n
> tty3::respawn:/usr/bin/tail -f /var/log/messages
>
> any ideas ?
Maybe something mounted and populated a fresh ramfs-based
/dev ? This way, old /dev/log is inaccessible, but syslogd
doesn't know that!
What do you see when you do "strace logger Hello"?
--
vda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090514/f9bec6ba/attachment.htm>
More information about the busybox
mailing list