From owner-freebsd-questions@freebsd.org Wed Dec 26 03:48:37 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 19FA0134185B for ; Wed, 26 Dec 2018 03:48:37 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (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 5856A94548 for ; Wed, 26 Dec 2018 03:48:36 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=EBXpbehdhZwAKFp0ntwOkPgb9p7OA5iZDnuBP4oo71M=; b=YMIHUm4ouwfjpnEo76wHHtKD1P ZKfKIlu8q+ixZ099TAEvYKzYrDEEF3OIDjl/8nKJhaZ5pJrkAvJzPZyFj+BKQxy8jZNNN5SKTHq7b t6+6emJ9+bG0bHxn+WubQTl5WLyXEAt0QpWiwCAReDrhWJbMwYc+21oGndzPjGLQ/p5c=; Received: from vas by admin.sibptus.ru with local (Exim 4.91 (FreeBSD)) (envelope-from ) id 1gc0BO-000OFs-H5 for freebsd-questions@freebsd.org; Wed, 26 Dec 2018 10:48:34 +0700 Date: Wed, 26 Dec 2018 10:48:34 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: Re: newsyslog gone mad Message-ID: <20181226034834.GA93222@admin.sibptus.ru> References: <20181225133944.GA75676@admin.sibptus.ru> <976B9918-6BA0-428C-ABC3-6FBE0498D1F0@radel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZPt4rx8FFjLCG7dd" Content-Disposition: inline In-Reply-To: <976B9918-6BA0-428C-ABC3-6FBE0498D1F0@radel.com> X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: Victor Sudakov X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Dec 2018 03:48:37 -0000 --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Jon Radel wrote: >=20 > >=20 > > Here is the relevant line from /etc/newsyslog.conf: > > /usr/home/www/*/logs/* 644 24 * @01T00 GZ /var/r= un/httpd.pid > >=20 > I=E2=80=99ve never tried this particular breakage in newsyslog, but gener= ally it=E2=80=99s best to match only what you want to rotate. Try >=20 > > /usr/home/www/*/logs/*_log 644 24 * @01T00 GZ /va= r/run/httpd.pid >=20 Thank you Jon, this is probably where I shot myself in the foot. I had expected newsyslog to have precations about rotating files which are already rotated, but I had better not. --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --ZPt4rx8FFjLCG7dd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJcIvoSAAoJEA2k8lmbXsY0y2IH/i8eI77ikSRY76P3D0DTwCdr /r39Sg8SmOBGyd0Lj65Rg0G5Y60vv2jpqEVTG0ra7Xcj1gNYSAMmAG9YXeSDDtxT OAD2CJterdM9siHMYLoo36BcQ0Et1qQDG0Pz54IjpIVNYN07HsxI8e0hhsHg9GtA QAw7tS3X/9016wc7W6qOyC9F4rGyLPz6IqhBjkpyyb5Fd1cP5BU4Unzw+q+woZe5 n5joioHPG0F5EIACz961lYQzcgReTgWURXk0oKTBI+IYB52AhJqBB5egHEfI9k/t 9teUH38gtyzCnwkp34SbuUfoInrJe6SAX/KjUs02J9w04OIRRkSpENPtIOyBVqc= =tulk -----END PGP SIGNATURE----- --ZPt4rx8FFjLCG7dd--