Hi all,
I have installed a CentOS4.3 box and migrated some application from FC1 to the new box, everything else runs perfectly except syslogd/klogd.
/etc/rc.d/init.d/syslog starts without any problem, but there is nothing logged into /var/log/messages, even I restart the service. However, I tried to shut the service down and run "syslogd -m 0 &" and "klogd -x &" as root from shell, it works good.
I have spent a lot of time, but still can not figure out why it does not work when starts by init as a daemon.
Anybody had the same issue before? Any suggestion is highly appreciated.
Thanks, Jeff L
Jeff Liu wrote:
I have spent a lot of time, but still can not figure out why it does not work when starts by init as a daemon.
What does "lsof /dev/log" say?
Of it returns "minilogd", you might have a selinux issue at hand, /dev/log has an incorrect security context then.
If so: "touch /.autorelabel" and reboot the machine. Then wait. And wait. And wait a little bit more.
At least that's what happened to me on my box.
Another place where I'd look: Do you have /tmp mounted "noexec"? Then it could be logrotate running amok. Does it maybe still log to one of the rotated files?
Regards,
Ralph