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 D86B5158170 for ; Wed, 17 Jul 2024 12:08:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 91AE82BC146; Wed, 17 Jul 2024 12:06:05 +0000 (UTC) Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (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 654B02BC143 for ; Wed, 17 Jul 2024 12:06:05 +0000 (UTC) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2eede876fbfso53622491fa.1 for ; Wed, 17 Jul 2024 05:06:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721217964; x=1721822764; 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=Jz2vofhYOcLxohQVVZYq4Xd35fRG2ZLx84A78q2u1yGtMGGv0oxoCmGpjF4ydWwvbl /BUNCHGl7GO2npgsV84/HZkoGhAbkIFfZGP95KvoasiRbQevJlbzhSgyusOkZVqwJg3M 3K/h1vzjnmdmuU9YS+W0fH3Y3/NMNeI7vO48WtoN0WCk8q8UmdFRcxyHUUOt+/+CEFsS dsluXwylBaDL0M/qJ7lsInoUpWb0NfxNVqmY5m2rKTvQEP1jPV/571Q3rVpCPpUreXia 1cTZKvfpPUpeV1c7sSEouCUW3pYPZvnW43NtTMorRXUbaTmCCioCiMpL7iXhD1WZKEDO GPdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721217964; x=1721822764; 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=YSUx0PLzm1ZsO2OHQlm5gj9EkIVe3JAn2c8AVdawWNaDexLxqXj3HUW7TmMdWI/Nnt mEiJPYTR1i3EpQXwRgDJbLLvptuXOj13goXt2XdG6KZtZJj3MdlYshGsxdTFPt/koO1X tI6QA07akmmFu+3k5wVfnUDXD3O3Qu0Ra79xjRVZQIWeVfBncB05kb6xQr6aGEp9SYTK Ec5NMmn2uK/JLEDUplyeGcUXTLQefgrsCCF5TTtofderbjNiYS97qeXq/zwUeSmvFHrZ 1XuKo4wkyRtG0RM+9n9XK6iel4kE5dUseGmU2thhPM7wkBIgF6kUEOSK+15AG8ay6QA1 awdw== X-Gm-Message-State: AOJu0Yyy5Xjkf57rl/2n34vcWeWXHPYcBfT6HmOd48vhfkVEBkUGKkDG xrv0yvP1y1Z1KQ17j2sRNmANE7BJaSwVsUXvY9aYIGjf7525Q3yq03typQ== X-Google-Smtp-Source: AGHT+IH/jkc27mm+ZQjI4QcKzg3UgBGWwyyuKUDIwolaOLpWbvO9SSOsy9zW5P1pOSRn47HblouqLw== X-Received: by 2002:a2e:9611:0:b0:2ee:8bc6:6826 with SMTP id 38308e7fff4ca-2eefd0c1492mr10048881fa.26.1721217963882; Wed, 17 Jul 2024 05:06:03 -0700 (PDT) Received: from localhost.localdomain ([62.244.50.57]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2eee1914ad5sm14636941fa.79.2024.07.17.05.06.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jul 2024 05:06:03 -0700 (PDT) From: Zurab Kvachadze To: gentoo-dev@lists.gentoo.org Cc: Zurab Kvachadze Subject: [gentoo-dev] [RFC PATCH 07/19] www-servers/nginx: add nginx-r2.logrotate Date: Wed, 17 Jul 2024 15:05:39 +0300 Message-ID: <20240717120553.31866-8-zurabid2016@gmail.com> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240717120553.31866-1-zurabid2016@gmail.com> References: <20240717120553.31866-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: 3d9993d1-cb29-40ce-a650-78da620018ce X-Archives-Hash: d25b4712b08e2319f4bd335fb652dc0c 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