Re: newsyslog patch implementing file includes

From: Alex Keda <admin_at_lissyara.su>
Date: Thu, 22 Apr 2010 11:17:46 +0400
22.04.2010 07:55, Gordon Tetlow пишет:
> 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.
It's need feature. I test patch - it work for me (CURRENT, amd64)
Can I use some as:
<include> /path/to/dir/*.conf
?
and can I create recursive include?
Received on Thu Apr 22 2010 - 05:17:49 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:02 UTC