From owner-freebsd-current@FreeBSD.ORG Thu Apr 22 07:17:49 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 004A9106564A for ; Thu, 22 Apr 2010 07:17:48 +0000 (UTC) (envelope-from admin@lissyara.su) Received: from hosting.lissyara.su (hosting.lissyara.su [77.221.149.162]) by mx1.freebsd.org (Postfix) with ESMTP id A9B728FC16 for ; Thu, 22 Apr 2010 07:17:48 +0000 (UTC) Received: from [195.93.240.104] (port=36377 helo=lissyara.moskb.local) by hosting.lissyara.su with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.71 (FreeBSD)) (envelope-from ) id 1O4qfS-0005Pi-Bm for freebsd-current@freebsd.org; Thu, 22 Apr 2010 11:17:46 +0400 Message-ID: <4BCFF81A.6050006@lissyara.su> Date: Thu, 22 Apr 2010 11:17:46 +0400 From: Alex Keda User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; ru-RU; rv:1.8.1.23) Gecko/20091202 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: freebsd-current@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-White-List: YES X-Spam-Description: if spam count > 60 - this is spam X-Spam-Count: 0 X-Descriptions: powered by www.lissyara.su X-Bounce-ID: hosting.lissyara.su Subject: Re: newsyslog patch implementing file includes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2010 07:17:49 -0000 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 > > Format for the include line in /etc/newsyslog.conf is: > /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 tag to specify include files. > Globbing is supported in 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: /path/to/dir/*.conf ? and can I create recursive include?