Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Apr 2010 01:38:43 -0700
From:      Gordon Tetlow <gordon@tetlows.org>
To:        freebsd-current@freebsd.org
Subject:   newsyslog patch implementing file includes
Message-ID:  <j2x4e571dd71004200138xf3ced660k2f01e29c3ad981fa@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I wanted the ability for a port to have a rotating log policy so I wrote a
patch for newsyslog to implement includes of other newsyslog.conf style
files.

Please find the patch at:
http://people.freebsd.org/~gordon/patches/newsyslog.diff<http://people.freebsd.org/%7Egordon/patches/newsyslog.diff>;

Format for the include line in /etc/newsyslog.conf is:
<include> /etc/defaults/newsyslog.conf

Here's a quick overview of the changes:
Convert the conf_entry struct from using a home rolled linked list to the
queue(3) macros.
Add a STAILQ to process include files.
Add support for <include> tag to specify include files.
Globbing is supported in <include> statements.
Properly detect circular include loop dependencies.

Please take a look and send me any comments you might have.

Thanks,
Gordon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?j2x4e571dd71004200138xf3ced660k2f01e29c3ad981fa>