From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B7834158074 for ; Wed, 02 Jul 2025 22:18:22 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id A1AC2342618 for ; Wed, 02 Jul 2025 22:18:22 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 850F81105E9; Wed, 02 Jul 2025 22:07:18 +0000 (UTC) Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) (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 bobolink.gentoo.org (Postfix) with ESMTPS id D3EEF1105DF for ; Wed, 02 Jul 2025 22:07:17 +0000 (UTC) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-450cb2ddd46so44284455e9.2 for ; Wed, 02 Jul 2025 15:07:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751494036; x=1752098836; 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=xwut1Jn1L0CaPPy/C8X581p0tKNCHq00X65LUjWdgqM=; b=jrVjEVpvyeNd6D3jpMfHWjpnjK7j9RWdWZTr599HA0YMR0GdSBSDjHCHxiQXfAMlRu gF14f5aJV+UrQsFVB41m2CwUz/EKSKhle1VtmLkcVZXC1IqedxMxbWnsmtCe0hU0AhJZ 2Efd4O9iQ66QD7SUoLpUTkDTwK0d7+Ukwi72HHZehMBEiqEV+HEl1cUqXR4/lPmNso++ GAU1oeVOPuWOvKJxIjgjUTF9O0xhAPQe53ksTotqgfnirlokmFWFrXqRj3eCChswG88F j+t5YvRZY24tOspgYLxE5yBLDQmTfVB3xtbOs0h07cqmQZFsnMiEOWxcLb1C+q5lFoxT Impg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751494036; x=1752098836; 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=xwut1Jn1L0CaPPy/C8X581p0tKNCHq00X65LUjWdgqM=; b=xSn+sBZBCB4+kt7jvS4IFOytRX1uaXdygqJtSdJHDpduSH4OLLQQpqICDMs3iB2cgy 8zyLXEu7Aqpeiue8296ApKsK4070rg/U/mQqZQFM/htjUPEBQIfRBCfYk2348FFq0WXj LtCC3ScsY8k/294syyPA/IzIlJadI8lG2MxJ2fDXh1CjDVLHw5lcG0YCrgtsEmw0BKAI U6ScUEWdvN3s0OUAj3I++ICRyx1L+XF/KluDO1xyIh334itAZL+93dAis+3KyeepCJfO WYWFEy2W11rIs6wAI+393xEE3PQGqylOHG39Jsyg/P8mvxYveEtZuHhuiLScidZcDSQ+ 5L9A== X-Gm-Message-State: AOJu0YwtwY7FXZfbmh5xQlR/aDh4IUiplA8CODeD3RIJRbhsk0Bs1JGr n33geVCxEsIvrvKSja43CTEZcd8aNnbSyoDHcOQ8p0bYRYNbD1k6ZJi8B7I5dRlI X-Gm-Gg: ASbGnctDWqNWo9x3sbM6EVh0g/TvHeruBid1USAYrWaotSaPb3PBkNi3PhBuRtBy0JK jLq9izmGu6paig+yuw/yeYuARGndEUgDrInhnDXyILbTJnoRsekLBmsm1estsMRIkPGbZL3fC49 bJERS+g++LjV6+nr5j5yYALyJManmiH01W59M7lniMlVUfYu7WfM96zjc7O6d6Teg4MHhfJFfEQ ki+GQ7VgEQsJXai/M7odiuOyRwwrrcK+PxLOglfMnKn8/LC1PEBpJN2rbVrDGSfjp5o5YCtj1Ni LSPiooIn8oJY4HfphrTS6bD/Tf2fK8ZwGSbD+GfwW799BUMQSSJaJbWegqDAbeFXsWygWb2V+hz 7T4LiOH3PWsts9F5yWg2BHRy+vgrzKE7FwJGxwLJHTbNcrq73+v3lo0qO3yi/oXrPGa7Bo2nZ X-Google-Smtp-Source: AGHT+IFrjJLHdGshS1G7tkJZH0E6PH99bsflw8LWWz7YIUPTjBlhzfC4aE24YRIeyMLaPLW+G9hilg== X-Received: by 2002:a05:600c:3b8a:b0:450:6b55:cf91 with SMTP id 5b1f17b1804b1-454a5629244mr36997845e9.6.1751494036045; Wed, 02 Jul 2025 15:07:16 -0700 (PDT) Received: from gentoo-framework.fritz.box (p200300e3670fa900e88f375122fffbb3.dip0.t-ipconnect.de. [2003:e3:670f:a900:e88f:3751:22ff:fbb3]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-454a9989fcesm8921495e9.16.2025.07.02.15.07.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Jul 2025 15:07:15 -0700 (PDT) From: Zurab Kvachadze To: gentoo-dev@lists.gentoo.org Cc: Zurab Kvachadze Subject: [gentoo-dev] [PATCH v4 11/44] www-servers/nginx: add nginx-r2.logrotate Date: Thu, 3 Jul 2025 00:06:31 +0200 Message-ID: <20250702220705.4649-12-zurabid2016@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250702220705.4649-1-zurabid2016@gmail.com> References: <20250702220705.4649-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: 0a1c5eee-68c6-4f2c-8a00-17cf6c6646bc X-Archives-Hash: ec0353f96b90435216a23a74cd9b7bd8 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 --- www-servers/nginx/files/nginx-r2.logrotate | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 www-servers/nginx/files/nginx-r2.logrotate diff --git a/www-servers/nginx/files/nginx-r2.logrotate b/www-servers/nginx/files/nginx-r2.logrotate new file mode 100644 index 000000000000..1f16c41261cb --- /dev/null +++ b/www-servers/nginx/files/nginx-r2.logrotate @@ -0,0 +1,11 @@ +# Copyright 1999-2025 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +/var/log/nginx/*.log { + missingok + delaycompress + sharedscripts + postrotate + test -r /run/nginx.pid && kill -s USR1 "$(cat /run/nginx.pid)" + endscript +} -- 2.49.0