[syslog-ng]two syslog-ngs?

Balazs Scheidler syslog-ng@lists.balabit.hu
Mon, 16 Aug 2004 19:57:14 +0200


On Sat, 2004-08-14 at 12:36, markzero@logik.ath.cx wrote:
> Hmm, having got stunnel mostly working, I'm left with a little
> more confusion. I'm about to attempt to build the loghost, the
> only problem is that I'll need to chroot syslog-ng.
> 
> /chroot/syslogng
> 
> Surely, this is going to cause problems as the chrooted syslog
> will need to do the logging for the local machine as well, and as 
> such will need access to /dev/log.
> 
> It can't be as simple as:
> 
> ln -s /dev/log /chroot/syslogng/dev/log
> 
> ...can it?

this should work but in a reverse way, e.g. symlink the outer /dev/log
to the internal one:

ln -s /chroot/syslogng/dev/log /dev/log

> 
> Other than this, the only solution I can think of is to run two
> copies of syslogng, one chrooted for accepting network connections
> and one un-chrooted (that is an annoyingly awkward word in conversation)
> for doing local logging for the machine itself.

this one should also work.

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1