[syslog-ng] Bug in syntax checking in 2.0-rc1

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Fri Jul 14 03:23:22 CEST 2006


On Thu, 13 Jul 2006 18:52:23 CDT, Paul Krizak said:
> $ syslog-ng -d -F -f /opt/mpd/vtec/etc/syslog-ng.conf
> Error in configuration, unresolved destination reference; 
> filter='d_syslog_pipe'

The syntax is fine, it's the semantics that's screwed up here.

You had a syntactically correct line that referenced a bad destination.

> I believe that the -s switch should mean "if it returns zero, then when 
> you fire up syslog-ng, it *will* start up and begin functioning."

No.

The -s switch *can't* guarantee that.  Consider all the ways it can
fail on the way up - everything from being unable to bind port 514 for
listening to not being able to exec() the binary for a destination that
pipes to a program.

It's even possible that if you run the -s as one user, but actually launch it
as root, it will fail because it can't read its config file (consider a /etc/
syslog.conf that's on an NFS mount in a cluster, owned by a user 'syslog' and
mode 640 - and the mount squashes root access to 'nobody').

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 226 bytes
Desc: not available
Url : http://lists.balabit.hu/pipermail/syslog-ng/attachments/20060713/2639c955/attachment.pgp


More information about the syslog-ng mailing list