From owner-freebsd-questions@freebsd.org Tue Nov 22 17:32:54 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0CA5DC50EC2 for ; Tue, 22 Nov 2016 17:32:54 +0000 (UTC) (envelope-from stdin@niklaas.eu) Received: from mx.box-hlm-01.niklaas.eu (mx.box-hlm-01.niklaas.eu [IPv6:2a02:2770:15:0:21a:4aff:fe1b:d1ad]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CE5791BCE for ; Tue, 22 Nov 2016 17:32:53 +0000 (UTC) (envelope-from stdin@niklaas.eu) Received: from box-hlm-03.niklaas.eu (unknown [10.77.0.1]) by mx.box-hlm-01.niklaas.eu (Postfix) with ESMTPSA id 2F2812C3524 for ; Tue, 22 Nov 2016 18:32:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=niklaas.eu; s=default; t=1479835962; bh=qinjK+QMM+Ol1a+0OsyvSJBdrkhOA7oNXyFsVx3x9n8=; h=Date:From:To:Subject; b=ij8T7PecAaWxf+zcBiV0801VB3REBMimj5pBOv8w6G45JR2xEL/cMcX+xXIPW52u3 n6xXTEkoXtc1yB9BV7aoR70u94hT2c7l8CAxiD6CkleueZzYTEoXiNef+Jra2htwwG YZ630tluIic2i0rkxHqjlxC7yk/h5AGNHWnHU1rU= Date: Tue, 22 Nov 2016 18:32:42 +0100 From: Niklaas Baudet von Gersdorff To: freebsd-questions@freebsd.org Subject: Overwriting /etc/newsyslog.conf Message-ID: <20161122173241.r4ffmsoigh4rx7b2@box-hlm-03.niklaas.eu> Mail-Followup-To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20161028 (1.7.1) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Nov 2016 17:32:54 -0000 I want to change the existing entry in /etc/newsyslog.conf for /var/log/maillog /var/log/maillog 640 7 * @T00 JC to save more than 7 rotations e.g., /var/log/maillog 640 10 * @T00 JC I want to refrain from changing /etc/newsyslog.conf directly (maybe the file will be updated future releases). So I thought about adding the line above to /usr/local/etc/newsyslog.conf.d/custom.conf that is included in /etc/newsyslog.conf. Will newsyslog take the first occurrence (in /etc/newsyslog.conf) or the last one (in this case in /usr/local/etc/newsyslog.conf.d/custom.conf) of /var/log/maillog's entry to perform log rotation accordingly? I tried to find a comment on this in newsyslog.conf(5) but wasn't successful. Does anybody have experience with this? Niklaas