Hello,
I'm running into a syslog problem for weeks now and can't see any issue. I
did not find any helpful hints on newsgroup I posted and wonder if someone
here could help with this :
The goal : setting up a bootable CD-ROM based on RedHat 6.2
The problem : syslog does not log !
When booting, syslog is launched by the init scripts and does not log
anything except "Syslog restarting ..."
If I just launch it manually after the boot, it will work.
I modified the init scripts to launch it without a special daemon calling
function, does not change anything.
The interesting part : I made system call traces with strace and found :
- syslog opens /dev/log as a SOCK_DGRAM socket,
- loggers ("logger" for example) can't open /dev/log socket : get a
EPROTOTYPE error when opening with SOCK_DGRAM. Works when opening with
SOCK_STREAM. But that does not log as syslog opened the socket in SOCK_DGRAM
mode.
I think this is most of the problem but can't find a solution.
Note : I boot the system with a read-only root fs and a ramdisk over /var.
Kernel is 2.2.16 patched with devfs. When rebooting with a read-write root
fs, I have no problem at all !! But strace did not show something about
"logger" or "syslog" having troubles to open a file on the read-only fs
(except for the socket : see previous EPROTOTYPE error).
I don't think there is a user right problem as /dev/log is created 666 by
syslog (also some more info that let me write this, but too long here).
I someone could help about this problem, I just have no more ideas ...
Thanks in advance.
Sylvain.