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 9F6531582EF for ; Fri, 21 Feb 2025 16:19:16 +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 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 89DA1343CE2 for ; Fri, 21 Feb 2025 16:19:16 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 2DD50110500; Fri, 21 Feb 2025 16:09:01 +0000 (UTC) Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (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 666CF1104F2 for ; Fri, 21 Feb 2025 16:09:00 +0000 (UTC) Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-38de1a5f039so2104366f8f.2 for ; Fri, 21 Feb 2025 08:09:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740154139; x=1740758939; 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=NuXf9fI+ODAseX/SeiCSPIJ3nyyiqFAG3ST+XQdw3cw=; b=DC/uydTb7JGmQBxTn3YJHTNGCcuCNKs3N3EBELo884XJedHwB5dmu4+O+hWbt2JNyH N+RK1N5qsaNeu+lsMlXPOv2DP9gd0KoR3xDJ1G2M/GRyLkFif2C98dcIq7QwOqBeerdt OCVH1tBXuUmrBXpyc7lGCwLk5hGOanSMZBkr5SDqGPb/fLAghsULGBL1aveelC6izHo6 wADRKhpWXSLwjXkl/CHp59kIjFiNCr9LcZfwmagAAvHYRPmMoSpqcuRg9QxlUoDJ92YC TjtDIyPDlLK+CcAp5AvOcy4BmgFCeARfhvf6nnOuLabyaPTzLjV8pylQUy0av1D1hCCL MJlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740154139; x=1740758939; 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=NuXf9fI+ODAseX/SeiCSPIJ3nyyiqFAG3ST+XQdw3cw=; b=b4hn+nHx2bh61wvCq1gzm9a9rMS0kIA3J87rXtUCUaByF8Bl0dGjpylSmjsVznbQfl 5dBOtMu5lbQUb3vcHr47cQCO82cZqfCblgKTwF06GdjFxQ+lsbVfIkMZnVSHB15XpZGd +++of7VCnYbHcp0v7N5gkBw4yhtrtTBqBzCzIYwP+VvWqHDKO8cW/GY98j9yQsaRlnDj wSVVkfTLZ2hTlPleOoiXIPMCi9+51ExytkQyYOFkGNtZ9r1SczhbK/ihw5fX9qZH9ny7 hRVQuCDBzL/UREo2MXN1j2IZM14c2ZnIWIQss2RgxF9ERWRRaUNHpHps5eouhxVGJ0yu h8lw== X-Gm-Message-State: AOJu0YwEJCXuzf6ka6Vj3lJHdvoXzfbXIgeN4R6YinTUXvdgZ5JeCEQi 0WmfUtjOQ0lC3LUfNJh1T6tS09okIAmlt/BOPx7XNjkAGKpWUXbX1xd+FLBg X-Gm-Gg: ASbGncshiZidxCU/K3YRLn3+xhEjrjVDi5envUjNenwUuwqissylWVkN+MDcS7eAIC8 7GmwpLWD5aCsihrNmW+6WbE9FLaP6bGtT8gwQVr/hGZwIWJmjzptkQR3UheXBDRc9jrVBKDMux0 z2gE7Ahm3lbz06o+4yRRxwxMukRxyIHAVvey1SmFxJgNmJOQpIIMcNwviupsAbysfHpRaABbmnk vYX0gPG68tGLhIR8GkftoWQexXsdbawaGatc10beoiFEGiBGI0FvZmv0ZDeNtrbcXdBSPDoP8Px HMBBxzW6TjHpnM6rH4OY8tFfxCqo8FI2nJzGzhfKQm8CWBfcx6iApJe0cIK3yjaAklhbDjlu+Z8 = X-Google-Smtp-Source: AGHT+IHeqRsdR/wwcBSvAAV5mFmA0wN3JZIy/xdYA5kBWAkDZDIP5fRwYvzhU9d3opMHlaL99RVlSQ== X-Received: by 2002:a5d:648b:0:b0:38f:3e1c:211d with SMTP id ffacd0b85a97d-38f6e95bb57mr4990647f8f.14.1740154138647; Fri, 21 Feb 2025 08:08:58 -0800 (PST) Received: from localhost.localdomain (92-70-146-242.biz.kpn.net. [92.70.146.242]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-abbac781b78sm862154466b.60.2025.02.21.08.08.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2025 08:08:58 -0800 (PST) From: Zurab Kvachadze To: gentoo-dev@lists.gentoo.org Cc: Zurab Kvachadze Subject: [gentoo-dev] [PATCH v3 11/40] www-servers/nginx: add nginx-r2.logrotate Date: Fri, 21 Feb 2025 17:08:08 +0100 Message-ID: <20250221160839.29308-12-zurabid2016@gmail.com> X-Mailer: git-send-email 2.45.3 In-Reply-To: <20250221160839.29308-1-zurabid2016@gmail.com> References: <20250221160839.29308-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: 578acdc8-3994-40b0-8319-9c80a0a06be3 X-Archives-Hash: 180bc6418d24e8ea4bd2e67d213ef638 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.45.3