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