From unknown Sun Jun 22 04:06:50 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#77303] [PATCH] services: anonip: Rotate log files. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: ludo@gnu.org, maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Thu, 27 Mar 2025 08:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 77303 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77303@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Maxim Cournoyer X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Maxim Cournoyer Received: via spool by submit@debbugs.gnu.org id=B.17430644761117 (code B ref -1); Thu, 27 Mar 2025 08:35:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Mar 2025 08:34:36 +0000 Received: from localhost ([127.0.0.1]:47322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1txih9-0000Hx-Ka for submit@debbugs.gnu.org; Thu, 27 Mar 2025 04:34:36 -0400 Received: from lists.gnu.org ([2001:470:142::17]:48004) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1txih5-0000Gy-NF for submit@debbugs.gnu.org; Thu, 27 Mar 2025 04:34:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1txih0-0008K2-0i for guix-patches@gnu.org; Thu, 27 Mar 2025 04:34:26 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1txigz-0001eV-15; Thu, 27 Mar 2025 04:34:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=NnnWxW0xyDf2VKBSK999yQv2Gcg7vjk3aKiNVSIDKm8=; b=j7kkM/XJf2CcGa 9A5ZBfz1UNe3fJM1sGXb8bxqZw+ytRAemU5lrnFsWgEYE/DwwO7J2yg4s5jGtJVKHjPL7K2t2WSBj c/vWI0IhC/+w6MV7ReWzu35qx/mzoBWsxZpmScnaBrf4RDVySoTJ3oqwzhDyFv1sKzk1OhAOmwz8A 6U38EXYF+o0W5qEwlzhYrxn8x0JhhbdZPOy390/9ZmWEAWXPvB5IFOhIwx8jDziK7H0FoDjQYZyYZ U3PWX8qH/3xPAvp+399kAmcPlfHAT0BHE8nJ4v0jhtcXRh74oAi3WeDw6uJ3T0BO2VPFX29nmnery tuV2VS/JB+XepPLrunAA==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Thu, 27 Mar 2025 09:34:08 +0100 Message-ID: <0e996666edba9393bd912f7018fd27273a5c288e.1743064399.git.ludo@gnu.org> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/services/web.scm (anonip-log-files): New procedure. (anonip-service-type): Use it to extend ‘log-rotation-service-type’. * doc/guix.texi (Log Rotation): Document it. Change-Id: I903bb79e0992b794bb0a40e504283cd57a8a087b --- doc/guix.texi | 4 +++- gnu/services/web.scm | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) This fixes a longstanding issue, in particular on berlin where log files keep growing. :-) Ludo'. diff --git a/doc/guix.texi b/doc/guix.texi index 3b98f1b4ea..28d7bf60ea 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -21453,7 +21453,9 @@ Log Rotation FIFO of this name. The web server should write its logs to this FIFO. @item @code{output} -The file name of the processed log file. +The file name of the processed log file. This file is subject to log +rotation @i{via} the Shepherd's log rotation service (@pxref{Log +Rotation}). @end table The following optional settings may be provided: diff --git a/gnu/services/web.scm b/gnu/services/web.scm index f8cf06fb48..9caa03317b 100644 --- a/gnu/services/web.scm +++ b/gnu/services/web.scm @@ -1574,12 +1574,18 @@ (define (anonip-shepherd-service config) "LC_ALL=en_US.utf8")))) (stop #~(make-kill-destructor)))))) +(define (anonip-log-files config) + "Return the list of log files produced by @command{anonip}." + (list (anonip-configuration-output config))) + (define anonip-service-type (service-type (name 'anonip) (extensions (list (service-extension shepherd-root-service-type anonip-shepherd-service) + (service-extension log-rotation-service-type + anonip-log-files) (service-extension activation-service-type anonip-activation))) (description base-commit: cfdd0f58d0f85127c166f0908aa7b85c7cb9cc74 -- 2.49.0 From unknown Sun Jun 22 04:06:50 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#77303: closed (Re: [bug#77303] [PATCH] services: anonip: Rotate log files.) Message-ID: References: <87ecy24rff.fsf@gnu.org> <0e996666edba9393bd912f7018fd27273a5c288e.1743064399.git.ludo@gnu.org> X-Gnu-PR-Message: they-closed 77303 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 77303@debbugs.gnu.org Date: Tue, 08 Apr 2025 15:32:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1744126323-704-1" This is a multi-part message in MIME format... ------------=_1744126323-704-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #77303: [PATCH] services: anonip: Rotate log files. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 77303@debbugs.gnu.org. --=20 77303: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D77303 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1744126323-704-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 77303-done) by debbugs.gnu.org; 8 Apr 2025 15:31:14 +0000 Received: from localhost ([127.0.0.1]:34792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u2Auw-00005z-8q for submit@debbugs.gnu.org; Tue, 08 Apr 2025 11:31:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40902) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u2Aue-0008Uo-Gv for 77303-done@debbugs.gnu.org; Tue, 08 Apr 2025 11:30:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u2AuX-0002Cl-Tg; Tue, 08 Apr 2025 11:30:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=BStRW+KnAZRfrc3DK1leCP5lNfG7QbyUOYqBIscDmGE=; b=Zh2Kv3kI37rbeDMc+J3/ BkE169MDdbT/jpw8L1gfNt71+D/uWNhBmxeb2o87Z6zSEJXcKGyO49wo9pCuLAE2EjMBeLCBtH4Du QF6kr7zmBr4lSuYehRovqAPdrbw/zaCguFJotDK5EJYtcpyaMTDqfbZw4PiTuw8guFnQeEtsGA6Tk A9pz2yNRhCjVjhhrL4FzudPgrBPWhoUXNthRJyIHp0wTSeVCx/QpHOM1gP2XXEctDmZUXc6liI+5j wdW3hO2hjoBhxtZl/V4Ps8zFfzkgCsKqsGguZhjy1VPhjlVnjmaDezGoRVuFrbhRYG3GzVTqhCBGB L64wlLTQDJodBA==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: 77303-done@debbugs.gnu.org Subject: Re: [bug#77303] [PATCH] services: anonip: Rotate log files. In-Reply-To: <0e996666edba9393bd912f7018fd27273a5c288e.1743064399.git.ludo@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22's?= message of "Thu, 27 Mar 2025 09:34:08 +0100") References: <0e996666edba9393bd912f7018fd27273a5c288e.1743064399.git.ludo@gnu.org> Date: Tue, 08 Apr 2025 17:13:40 +0200 Message-ID: <87ecy24rff.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77303-done Cc: Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ludovic Court=C3=A8s skribis: > * gnu/services/web.scm (anonip-log-files): New procedure. > (anonip-service-type): Use it to extend =E2=80=98log-rotation-service-typ= e=E2=80=99. > * doc/guix.texi (Log Rotation): Document it. > > Change-Id: I903bb79e0992b794bb0a40e504283cd57a8a087b I went ahead with this change, which is hopefully a cheap improvement. Ludo'. ------------=_1744126323-704-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 Mar 2025 08:34:36 +0000 Received: from localhost ([127.0.0.1]:47322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1txih9-0000Hx-Ka for submit@debbugs.gnu.org; Thu, 27 Mar 2025 04:34:36 -0400 Received: from lists.gnu.org ([2001:470:142::17]:48004) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1txih5-0000Gy-NF for submit@debbugs.gnu.org; Thu, 27 Mar 2025 04:34:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1txih0-0008K2-0i for guix-patches@gnu.org; Thu, 27 Mar 2025 04:34:26 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1txigz-0001eV-15; Thu, 27 Mar 2025 04:34:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=NnnWxW0xyDf2VKBSK999yQv2Gcg7vjk3aKiNVSIDKm8=; b=j7kkM/XJf2CcGa 9A5ZBfz1UNe3fJM1sGXb8bxqZw+ytRAemU5lrnFsWgEYE/DwwO7J2yg4s5jGtJVKHjPL7K2t2WSBj c/vWI0IhC/+w6MV7ReWzu35qx/mzoBWsxZpmScnaBrf4RDVySoTJ3oqwzhDyFv1sKzk1OhAOmwz8A 6U38EXYF+o0W5qEwlzhYrxn8x0JhhbdZPOy390/9ZmWEAWXPvB5IFOhIwx8jDziK7H0FoDjQYZyYZ U3PWX8qH/3xPAvp+399kAmcPlfHAT0BHE8nJ4v0jhtcXRh74oAi3WeDw6uJ3T0BO2VPFX29nmnery tuV2VS/JB+XepPLrunAA==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: guix-patches@gnu.org Subject: [PATCH] services: anonip: Rotate log files. Date: Thu, 27 Mar 2025 09:34:08 +0100 Message-ID: <0e996666edba9393bd912f7018fd27273a5c288e.1743064399.git.ludo@gnu.org> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Debbugs-Cc: Ludovic Courtès , Maxim Cournoyer Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/services/web.scm (anonip-log-files): New procedure. (anonip-service-type): Use it to extend ‘log-rotation-service-type’. * doc/guix.texi (Log Rotation): Document it. Change-Id: I903bb79e0992b794bb0a40e504283cd57a8a087b --- doc/guix.texi | 4 +++- gnu/services/web.scm | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) This fixes a longstanding issue, in particular on berlin where log files keep growing. :-) Ludo'. diff --git a/doc/guix.texi b/doc/guix.texi index 3b98f1b4ea..28d7bf60ea 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -21453,7 +21453,9 @@ Log Rotation FIFO of this name. The web server should write its logs to this FIFO. @item @code{output} -The file name of the processed log file. +The file name of the processed log file. This file is subject to log +rotation @i{via} the Shepherd's log rotation service (@pxref{Log +Rotation}). @end table The following optional settings may be provided: diff --git a/gnu/services/web.scm b/gnu/services/web.scm index f8cf06fb48..9caa03317b 100644 --- a/gnu/services/web.scm +++ b/gnu/services/web.scm @@ -1574,12 +1574,18 @@ (define (anonip-shepherd-service config) "LC_ALL=en_US.utf8")))) (stop #~(make-kill-destructor)))))) +(define (anonip-log-files config) + "Return the list of log files produced by @command{anonip}." + (list (anonip-configuration-output config))) + (define anonip-service-type (service-type (name 'anonip) (extensions (list (service-extension shepherd-root-service-type anonip-shepherd-service) + (service-extension log-rotation-service-type + anonip-log-files) (service-extension activation-service-type anonip-activation))) (description base-commit: cfdd0f58d0f85127c166f0908aa7b85c7cb9cc74 -- 2.49.0 ------------=_1744126323-704-1--