Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 156519

Summary: app-admin/syslog-ng doesn't provide useful default settings for FreeBSD
Product: Gentoo/Alt Reporter: Tiziano Müller (RETIRED) <dev-zero>
Component: FreeBSDAssignee: Mr. Bones. (RETIRED) <mr_bones_>
Status: RESOLVED FIXED    
Severity: minor CC: bsd+disabled
Priority: High    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tiziano Müller (RETIRED) gentoo-dev 2006-11-28 08:28:56 UTC
The problem is that FreeBSD doesn't have /dev/log device.
A working default config-file could look like the following:

******************************************************************

# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo,v 1.5 2005/05/12 05:46:10 mr_bones_ Exp $
#
# Syslog-ng default configuration file for Gentoo Linux
# contributed by Michael Sterrett

options {
        chain_hostnames(off);
        sync(0);

        # The default action of syslog-ng 1.6.0 is to log a STATS line
        # to the file every 10 minutes.  That's pretty ugly after a while.
        # Change it to every 12 hours so you get a nice daily update of
        # how many messages syslog-ng missed (0).
        stats(43200);
};

source src { unix-dgram("/var/run/log"); file("/dev/klog"); internal(); };

destination messages { file("/var/log/messages"); };

log { source(src); destination(messages); };
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2007-03-27 07:39:22 UTC
in 2.0.3.

thanks for the bug report and conf file.