From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id gC2lIMidnWYlDgEAqHPOHw:P1 (envelope-from ) for ; Sun, 21 Jul 2024 23:46:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id gC2lIMidnWYlDgEAqHPOHw (envelope-from ) for ; Mon, 22 Jul 2024 01:46:16 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=iw0tvpdB; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1721605575; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=WqzuzEHI00Tofc2yYfhYBO6SlGYxkPRYfIC7nXRLZOc=; b=c2WpP1vOrqtKnbIkXRlStyiMc621AliJNwBV1hd0bOwAjtj1NzjqXeYcNtYX+J6Tom7FZE aOB8uzZHE+918Cb+KQRZtZ5/DGFtuBhQM7NWSxlW4XHOQW/jPtgcF6xwXITCtKFiAVjKhv hC4U/sMe2nVAVT0f4TKcbXBvZ+5Ia20uAymmaVrScf3mGv7tugks3A1pjkKIEloKYyGL0l mqL1HyCXqpEkoJ3qThwhCuZGjEU8Fw1eO8T2UpcU3Q1kxhs2ekVq15ZV1fqIb+YYTI7S44 HTETmYQnhhwwU050kDY9TUtebuuON5xpEBiyfIpU93dgC2bQ/uCwPKxsYPE/IQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1721605575; a=rsa-sha256; cv=none; b=H11zHWn9lWSXxvmbuWa6AXwupyOxWg9QgYPQ2lAGopM/O0mHxSe1WLUQFDqV3VF9TRtjeU bBdOj9J2d9t+H0zAsYe1Pg4R/TO+XEIaUx2W9b2vG0CMjZzgak6jhfRSjlSE258tqCXJbi GPyMCET/kczrtFasLSJgkKY9bAdN83UcQufC/K2amkt2cjv9jlVOjEMNYKiT2jXhdvVyfK dCKWZ4XY531KXsF5+a2FM9ywJed/nInmam3SLU/9U7NhBEvaA1kR/+ZsUXKuhgonp5e0/G hbD9t+ZpqsWta+Vi95wo8TyHaczVTo5HSRaMdfITK70+H0AHB7rf5Mz3FytMVA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=iw0tvpdB; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 19F7C1DC18 for ; Mon, 22 Jul 2024 01:46:15 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sVgF5-0004VV-LM; Sun, 21 Jul 2024 19:45:27 -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 1sVgF3-0004V8-DX for guix-devel@gnu.org; Sun, 21 Jul 2024 19:45:25 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1sVgEz-00088z-R1; Sun, 21 Jul 2024 19:45:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=m9xwCcIHJ/bk9Nw Xh3ZPVTdDCMlAKnQApkkaj6Qhdbc=; h=date:references:in-reply-to:subject: to:from; d=lease-up.com; b=iw0tvpdBnxCt/o2dAe9SxflkmIZqQDUqpFX+X/c7QTu tUXeqM2kfstj3Gzt718ngV2666PlZewKjFWeTeBsurvgiAOqztj8+dJ+IcE6tVSy+3mafV sS8T7kpNvGlmsLJkZcoz5abOtxY3o1g7OBPzBvtlQAd57KoFQVti+JVBmg= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id 5fca94b8 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sun, 21 Jul 2024 23:45:14 +0000 (UTC) To: Ludovic =?utf-8?Q?Court=C3=A8s?= , guix-devel@gnu.org Subject: Re: Shepherd log rotation service In-Reply-To: <87ed9y4ygj.fsf@inria.fr> References: <87ed9y4ygj.fsf@inria.fr> Date: Sun, 21 Jul 2024 16:45:13 -0700 Message-ID: <8734o271iu.fsf@lease-up.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=208.82.101.137; envelope-from=felix.lechner@lease-up.com; helo=sail-ipv4.us-core.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Felix Lechner From: Felix Lechner via "Development of GNU Guix and the GNU System distribution." Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 19F7C1DC18 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.91 X-Spam-Score: -6.91 X-TUID: gCeF/3oqEM8G Hi Ludo', On Sat, May 18 2024, Ludovic Court=C3=A8s wrote: > I=E2=80=99ve just pushed a simple log rotation service for Shepherd: I have a patch removing rottlog from all Guix "services" that use the Shepherd's :log-file feature, which works fine. Do I need to provide a Guix "service" for the log rotation? If so, may I somehow reuse the Shepherd service definition [1] which doesn't contain any G-exps, in the Guix "service" definition, which does? This won't work: --8<---------------cut here---------------start------------->8--- (define (log-rotation-shepherd-service config) (match-record config (compression calendar-event expiry size-threshold) =20=20=20=20 #~((log-rotation-service #$calendar-event #:compression #$compression #:expiry #$expiry #:rotation-size-threshold #$size-threshold)))) --8<---------------cut here---------------end--------------->8--- =20=20=20=20 Thank you for your help, and thanks for the recent syslog announcement! Kind regards Felix [1] https://git.savannah.gnu.org/cgit/shepherd.git/tree/modules/shepherd/se= rvice/log-rotation.scm?h=3Ddevel#n219