From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 +E8lH+nWYmeKsgAA62LTzQ:P1 (envelope-from ) for ; Wed, 18 Dec 2024 14:06:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id +E8lH+nWYmeKsgAA62LTzQ (envelope-from ) for ; Wed, 18 Dec 2024 15:06:33 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=JOEatGD5; dkim=pass header.d=wolfsden.cz header.s=mail header.b=JOEatGD5; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=wolfsden.cz ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734530793; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=FhM0HTFVjNkzJ83Wz/bKIYpIFw8sYD8OlBzeOlnnb5U=; b=mohpQrISI+AHB2R0b6IX9kFTplTuPSDUwXVoD6jacwq2JaTfnAtOlhNUgwa4NPUT/DEvTb wsrke+Gju+fJNPZohfSYh+DfyuYT39CNtaWs7CjGFfXQR40N6Kz/vDeKPPOvSNGHRffzNN N1cpZDOYI3K/hu2oSd10EtmqJvFZXMZAWdklKl8NxPLJV+QzAF23NONb6ghXc291x45+eB b5fZ4m3Vkw5IZrRkXLCJrKjdfm1NfGa3ZRRRp9RjsH4Clq9TG5DbjJNlnoiM7XpmEfRVXw phVQbD7s61Eur0JEKHIIrpFF+Xf7KCruOldU0T12ivoBMcf2alngQdyMMzbgEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=JOEatGD5; dkim=pass header.d=wolfsden.cz header.s=mail header.b=JOEatGD5; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=wolfsden.cz ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734530793; a=rsa-sha256; cv=none; b=eIDXSLsER/anWDxe/PFpKB1tPz8DN8EUwagtFXGq2wmCrp3MthxiaNhZUR0Y1bBoZ00hyP eu00K4O1m5p+fTdz2Kj7kIqK9niaE+IhywFlSS6w369SMI5w2Lui53X/r7VmHQJ1cy/JOj JsMinY87me4oZRQRZIMMHYk1aRi1OJTW0PLaJdEHuoeMxvsMana81s6fcFuusxGIYCmu3p VOENwdJtXyK3FsCF33OuX11mLcIX0yqB75ZEkDmcmEqFhNs294k1AXtSRwvOCJM4YEMm3h jk1kv+vdGenGB5dqGEd74UYRl78WVWtrIY83YnJUGVKDR0SSwA/waFZWoY7eQQ== 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 F339D23C34 for ; Wed, 18 Dec 2024 15:06:32 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNuh2-0007QK-9R; Wed, 18 Dec 2024 09:06:28 -0500 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 <~@wolfsden.cz>) id 1tNugu-0007LP-RB for help-guix@gnu.org; Wed, 18 Dec 2024 09:06:20 -0500 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1tNugs-00055k-Lg for help-guix@gnu.org; Wed, 18 Dec 2024 09:06:20 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id C78F6379864; Wed, 18 Dec 2024 14:06:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1734530776; bh=obL6alAhlNSsZdhl02xzKfqgqhs9GdOEFYS+Q5zeEiw=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=JOEatGD54QHeqKLDLHU+1nnufawAFl7gVknKdNupz1PO4PJCRz98s+BKV4A7vJsyJ jjPx4UKYhLeeP9FCFFEkuiHYmSkrDTGjt5lZIjvnZGv53BDUREgzP4WL39u7dU/6Gd xPyzqhwsCOmROO9VefIJdXTj4MaxZi4zzbW5lcp0v5tlLScG1q6chB/ODUGiaZOtFB apWG4eKu4QYJ1VRoJUaNKg00YrZ+kA+sX3BEYuPVGesLmC+smNrS+BVwt2K4AVoYSU kzsezRmBb5ZoFvX8PAG6ePw1L19eMlAIN2FTo1P09ruwzMWrTqtC+CML+2Cub1ACkN 6quPn0LX7WcgkcnPNLOK5tqkCNzxz8wB7U3eXg8dqKnJcShXx8nW8gpeqDl8Q1PEO/ nsflJxpvo4ZJ2zPoLkcKR4m3yWR8vELwUSzPGYfPJORDBlHQRwmqJDWsFeSDrWrePI YYMEalgbWH2lEjzBNd4sw2J1lohsI9Kc7kQVgYmNJfIZ771mq794K7SFOiYveAOLn+ TRzn6CwNmXw/bc4Z3jqm+KuMPdMVHRTXV0y7GU0vI7PwDlsVE5TuOfpmaX6t0AZ95z TCCrZ4fdL7SY+gk7fxVSS5/5k9jMTU3Kyqc0v85ypjajMZdUSEuJz0hUiRVng43wCR 6dG1+ss3S5oa74rhFl3zrPi8= Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id F08C437993D; Wed, 18 Dec 2024 14:06:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1734530776; bh=obL6alAhlNSsZdhl02xzKfqgqhs9GdOEFYS+Q5zeEiw=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=JOEatGD54QHeqKLDLHU+1nnufawAFl7gVknKdNupz1PO4PJCRz98s+BKV4A7vJsyJ jjPx4UKYhLeeP9FCFFEkuiHYmSkrDTGjt5lZIjvnZGv53BDUREgzP4WL39u7dU/6Gd xPyzqhwsCOmROO9VefIJdXTj4MaxZi4zzbW5lcp0v5tlLScG1q6chB/ODUGiaZOtFB apWG4eKu4QYJ1VRoJUaNKg00YrZ+kA+sX3BEYuPVGesLmC+smNrS+BVwt2K4AVoYSU kzsezRmBb5ZoFvX8PAG6ePw1L19eMlAIN2FTo1P09ruwzMWrTqtC+CML+2Cub1ACkN 6quPn0LX7WcgkcnPNLOK5tqkCNzxz8wB7U3eXg8dqKnJcShXx8nW8gpeqDl8Q1PEO/ nsflJxpvo4ZJ2zPoLkcKR4m3yWR8vELwUSzPGYfPJORDBlHQRwmqJDWsFeSDrWrePI YYMEalgbWH2lEjzBNd4sw2J1lohsI9Kc7kQVgYmNJfIZ771mq794K7SFOiYveAOLn+ TRzn6CwNmXw/bc4Z3jqm+KuMPdMVHRTXV0y7GU0vI7PwDlsVE5TuOfpmaX6t0AZ95z TCCrZ4fdL7SY+gk7fxVSS5/5k9jMTU3Kyqc0v85ypjajMZdUSEuJz0hUiRVng43wCR 6dG1+ss3S5oa74rhFl3zrPi8= From: Tomas Volf <~@wolfsden.cz> To: Jake Cc: help-guix@gnu.org Subject: Re: How to add the timer-trigger-action to a shepherd service? In-Reply-To: (Jake's message of "Mon, 16 Dec 2024 23:43:27 +0000") References: <87cyhrb5oa.fsf@wolfsden.cz> Mail-Followup-To: Jake , help-guix@gnu.org Date: Wed, 18 Dec 2024 15:06:15 +0100 Message-ID: <8734ilaxwo.fsf@wolfsden.cz> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz 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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -10.72 X-Spam-Score: -10.72 X-Migadu-Queue-Id: F339D23C34 X-TUID: wMKL1cBqHCi+ --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Jake writes: > Hi Tomas > > I got the snippet below from the patch series > https://issues.guix.gnu.org/74860 > > (actions (list (shepherd-action > (name 'trigger) > (documentation "Trigger something.") > (procedure #~trigger-timer)))) Oh, this seems a bit more elegant that the version with identity, thanks for the suggestion. > > Cheers > Jake > > > > On Mon, Dec 16, 2024 at 10:54=E2=80=AFPM Tomas Volf <~@wolfsden.cz> wrote: > >> >> Hello, >> >> I am trying to use the new shepherd timers in my guix configuration. I >> got it working with some help on IRC, except I cannot figure out how to >> configure the extra action. Shepherd's manual gives this example: >> >> --8<---------------cut here---------------start------------->8--- >> (define updatedb >> (service >> '(updatedb) >> #:start (make-timer-constructor >> ;; Fire at midnight and noon everyday. >> (calendar-event #:hours '(0 12) #:minutes (0)) >> (command '("/usr/bin/updatedb" >> "--prunepaths=3D/tmp"))) >> #:stop (make-timer-destructor) >> #:actions (list timer-trigger-action))) >> --8<---------------cut here---------------end--------------->8--- >> >> However I cannot figure out what to put into the (actions) field of the >> shepherd-service record. Documentation says it should be instance of >> shepherd-action, however I have no idea how to turn the >> timer-trigger-action into it. Any suggestions? >> >> Thanks, >> Tomas >> >> -- >> There are only two hard things in Computer Science: >> cache invalidation, naming things and off-by-one errors. >> =2D-=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJCBAEBCgAsFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmdi1tcOHH5Ad29sZnNk ZW4uY3oACgkQL7/ufbZ/wal5ZRAAtEx6cM46AnIJjlsIRoAdURDNtTZmtK82kpye f2JN09+c8YQyvPBLf1JfmwUu2K1+YHRyMKgNcPNy3pEwx6WVWi/oi0J7p5Q0SEQv kmZEqzUS00biA0cEn/4oRpbzc+u3Uo5u7Rf7fhzUDUc7mXvlsz1yEKFOz1kKch0F S6a4EYYEK27I86lWNWdTkn9U1cHuPdnGlmTXmHAa5xqa6sdoWF98OAN7tPRw/WX+ X8iIYnVQ3cpAj15rmJmOYmEDrA2SQE3zhWLyQAnIpFLPMWwf/nwJV4WJ0HIn3ZLc Ot4nrzdU8iSA5Io8LIUFE30Mnw35xmPq0alSQXiA84KEEqrZYBBKitr2+6Q5erIO Qkdpls4pkuy5Rpti69h2RXKbZjlRUxgXst+l0E848Uy1QnRmSdj8hQS3VTcdlYCs PnbmDbUSYoSagZHlcpqxY59w9AJ969c8Fgg9NjNs/h2Y4EpN+V9QSaQxQCmQ2tpb Rk8YOIr116DkSI2yJldH/2Jk+YoNz1RhvCiEi57q/21mBW5/qCukmNxvt0uOBjKy OBtKivWafEQMu7YUj2BUrc+xS+3Q8btORBnUpZtdLwVAT2LFXaOU7iwHvhFyKqI2 qJJHTr2okU9VkSwYZaMyJkvoJyDxBO28KxM/Pm2l7B7N4HpUPOcvzi8haR+QEgic cZv/EiU= =GBcw -----END PGP SIGNATURE----- --=-=-=--