From unknown Fri Jun 20 07:17:53 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#77303 <77303@debbugs.gnu.org> To: bug#77303 <77303@debbugs.gnu.org> Subject: Status: [PATCH] services: anonip: Rotate log files. Reply-To: bug#77303 <77303@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:17:53 +0000 retitle 77303 [PATCH] services: anonip: Rotate log files. reassign 77303 guix-patches submitter 77303 Ludovic Court=C3=A8s severity 77303 normal tag 77303 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 27 04:34:36 2025 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 08 11:31:14 2025 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'. From unknown Fri Jun 20 07:17:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 07 May 2025 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator