From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 75997159C96 for ; Mon, 29 Jul 2024 21:54:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 17C052BC121; Mon, 29 Jul 2024 21:52:53 +0000 (UTC) Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D9AAB2BC11B for ; Mon, 29 Jul 2024 21:52:52 +0000 (UTC) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-59f9f59b827so6186000a12.1 for ; Mon, 29 Jul 2024 14:52:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722289971; x=1722894771; darn=lists.gentoo.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OynvO7174c0tchcsfzLGvHGpGo4DqTBeYh842Vbu4vY=; b=Qc4jIsiCodv/vEQyMpoYCfz9rAb8iPFJAPZN5O+0NDZI3gzNXgI22qPIPkkUOEmFMj oKl3xVmKEd9c1rDFCAM5Y91866p5td5xdDv31Ervc4v3xeGx/yOHdDbh5/NivT1zOYHS qfT2WYNMMZS45gR1ARgGd79Vs5l0AczS9UH6cfU77gAvBmk8FyTsWoU4Y/8cV0sszK1E 6y+mLESCVg9GfG7lFLntQCMjawd+98XBQ1zGCQTzOYVbWX533SpfutVOzoLf33jb7PIj u5HaOUK4paJTTyOQeIsGIggfhiGFxOHnjoZRVO0Sa37POkfe/x3ePvkmbfjcOstxLolc huWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722289971; x=1722894771; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OynvO7174c0tchcsfzLGvHGpGo4DqTBeYh842Vbu4vY=; b=fAbA0L+1shg7DPCBsWBngshCEnFHkZ1kb30NtGHjwM6ebgLFoUX2GNG2CfunAQh7/B OWHYUFCy5Jq+3AC/76N1mVkeoVB0estcd6mojbahoiLXkeyh4CgtqOljBeeFSKFsrcxG 5EM58/k0G25rKU+t0XiiBUsOd3WUgoohuSpL3+dnuk24db1edYOe2SBj3nawCkWlcQwP sZ2eZucowzMV5Oo5T3/o/JH1xI5d3dNQiOtPl80fRlahRyQDZQBDU2nfpsK0eXgMA3Gj SmPVztx/Mg6+46ROmkk2DVlYzSFr2jY0b/e0aNXv7hBsbzjuEbUvg05HysOp8BFoZrDk Db0g== X-Gm-Message-State: AOJu0YyMInn7eCVNUZjfn/NaJqhysB3pfX0/5Mgnsvho33wTtZJE57kC f0Z0xfg5/9aBZtchRxHc/iQbulxhewFpoBRaGjs5otKcRAfz4SyzZBs3Fw== X-Google-Smtp-Source: AGHT+IH6WuAVIeqSG9a+6NZXMUwgHXp1oSdLZA2zDpVRLKNL6nzYctaMRUhDcQgQEf94kisx8J3p2w== X-Received: by 2002:a17:907:6ea0:b0:a77:cf09:9c70 with SMTP id a640c23a62f3a-a7d40114c3amr559412166b.43.1722289971490; Mon, 29 Jul 2024 14:52:51 -0700 (PDT) Received: from localhost.localdomain ([62.244.50.57]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acad9046fsm564748266b.147.2024.07.29.14.52.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jul 2024 14:52:51 -0700 (PDT) From: Zurab Kvachadze To: gentoo-dev@lists.gentoo.org Cc: conikost@gentoo.org, Zurab Kvachadze Subject: [gentoo-dev] [RFC PATCH v2 08/20] www-servers/nginx: add nginx-r2.logrotate Date: Tue, 30 Jul 2024 00:52:24 +0300 Message-ID: <20240729215241.13243-9-zurabid2016@gmail.com> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240729215241.13243-1-zurabid2016@gmail.com> References: <20240729215241.13243-1-zurabid2016@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 01013a53-2bb9-415a-9033-f6cbaccf9af2 X-Archives-Hash: bf242e4f50bdb1cd862ed4265ab5c90b This is the second revision of the logrotate script for NGINX. This changes the log files' names from /var/log/nginx/*_log to /var/log/nginx/*.log, resembling the new nginx.eclass defaults (bug 700866). The postrotate script was updated to use the "$()" construct for the command substitution, instead of the legacy `backtick` one. The "kill" utility now use a more POSIX-complying argument "-s singal_name", replacing the XSI's "-signal_name". Bug: https://bugs.gentoo.org/700866 Signed-off-by: Zurab Kvachadze --- .../nginx/files/{nginx.logrotate-r1 => nginx-r2.logrotate} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) copy www-servers/nginx/files/{nginx.logrotate-r1 => nginx-r2.logrotate} (51%) diff --git a/www-servers/nginx/files/nginx.logrotate-r1 b/www-servers/nginx/files/nginx-r2.logrotate similarity index 51% copy from www-servers/nginx/files/nginx.logrotate-r1 copy to www-servers/nginx/files/nginx-r2.logrotate index bc9d87a09a91..55a3b01e13a1 100644 --- a/www-servers/nginx/files/nginx.logrotate-r1 +++ b/www-servers/nginx/files/nginx-r2.logrotate @@ -1,11 +1,11 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2024 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -/var/log/nginx/*_log { +/var/log/nginx/*.log { missingok delaycompress sharedscripts postrotate - test -r /run/nginx.pid && kill -USR1 `cat /run/nginx.pid` + test -r /run/nginx.pid && kill -s USR1 "$(cat /run/nginx.pid)" endscript } -- 2.44.2