syslog-ng doesn't work with minilogd
Hi I installed syslog-ng 1.5.24 on Red Hat Linux 7.3 and 8.0 and discovered that it doesn't work together with minilogd. For a description of minilogd please see: <http://www.cygnus.com/support/wpapers/redhat/initscripts/what.html>. Minilogd terminates if syslog-ng is started like expected, but the messages buffered by minilogd are lost. Any idea what's the cause and how to fix it? Daniel
On Sun, Dec 29, 2002 at 06:32:25PM +0100, Daniel Tschan wrote:
Hi
I installed syslog-ng 1.5.24 on Red Hat Linux 7.3 and 8.0 and discovered that it doesn't work together with minilogd. For a description of minilogd please see: <http://www.cygnus.com/support/wpapers/redhat/initscripts/what.html>. Minilogd terminates if syslog-ng is started like expected, but the messages buffered by minilogd are lost. Any idea what's the cause and how to fix it?
Maybe minilogd expects a SOCK_DGRAM (unix-dgram) socket as /dev/log and you are using a SOCK_STREAM one (unix-stream)? Maybe we could help you if you gave us some more information, like strace-ing minilogd as it tries to deliver a message. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
Maybe minilogd expects a SOCK_DGRAM (unix-dgram) socket as /dev/log and you are using a SOCK_STREAM one (unix-stream)? Yes, that's it. Thank you. I am using syslog-ng.conf.RedHat from the contrib directory. I know this file is not officially supported, but perhaps this should be changed.
Maybe we could help you if you gave us some more information, like strace-ing minilogd as it tries to deliver a message. For completeness, here is the strace (syslog-ng running with unix-dgram("/dev/log") ):
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({2, 0}, {2, 0}) = 0 socket(PF_UNIX, SOCK_DGRAM, 0) = 5 connect(5, {sin_family=AF_UNIX, path="/dev/log"}, 110) = 0 write(5, "<189>Dec 30 12:42:54 syslog-ng: "..., 62) = 62 write(5, "<94>Dec 30 12:42:55 pure-ftpd[24"..., 100) = 100 write(5, "<38>Dec 30 12:43:00 su(pam_unix)"..., 88) = 88 write(5, "<38>Dec 30 12:43:04 su(pam_unix)"..., 71) = 71 _exit(0) = ? Daniel
participants (3)
-
Balazs Scheidler
-
Daniel Tschan
-
Daniel Tschan