From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 uJzuOaevYGcbJgAAe85BDQ:P1 (envelope-from ) for ; Mon, 16 Dec 2024 22:54:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id uJzuOaevYGcbJgAAe85BDQ (envelope-from ) for ; Mon, 16 Dec 2024 23:54:32 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=GWMfjDaV; dkim=pass header.d=wolfsden.cz header.s=mail header.b=cM6vnD2m; dmarc=pass (policy=none) header.from=wolfsden.cz; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734389671; a=rsa-sha256; cv=none; b=t1NV+8Bl9AqtkLw9ZE0/u8sn0cYWe5CTCSeVf2DzoQEcZfz9zh8PLdrupAjHnudGbdSdjO nafeDoDFtG7IfIRfbnByd8DqFT8crk9oe3SX7kQ0Yric/sRU1/Yqd+PHATAPf6poHZp29Z m1yRbDIwQi4uRBOA+0uTRj3di+L5srhy1+ZMfkauQxilePOBDmkEP/QM6lSfH+48GNUbq1 sDnbj194ug6xAA6TnHVAvMrp/yZCl17wL17ORmMK8PQwk0egcj2Yzmz33Frx7+em5lWR0A XazcfTm2HwtL1g/ow3qjimY03ssCAfFnA8sx+jFlSYXx+EK3tL3X7IKbPm5neQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=GWMfjDaV; dkim=pass header.d=wolfsden.cz header.s=mail header.b=cM6vnD2m; dmarc=pass (policy=none) header.from=wolfsden.cz; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734389671; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=kz+5dOQalO/GsoDF7vLthIluLLRsb1o2t5BI8/JqHaQ=; b=hoWP+BascpKUeNwZc7upPDf3iV0D6b7EupPcW+RyOq0Vy0DxgzWLXg7VgsUwcE2lKdW+bd TQr9slZmUKLPfh30QBaUX8au7gBrWWkEuyWJUj7Ic/J1pNuIJfoDD4NQjfGgMInOXI8fih UEip5shFDHYaqpLrfWVM5ME60okk8bzX0LYrP1SgWyNg7qxPnfftZ7fitwUWNc+HDnZqVF BpcguSTtyEXdVdG4fK/VdM0mW00Uaw25lcfhETEeuRfaM/aEUuCQHUhiu0zzkKSk8ZnpWq YatHoIgfv7Na2sG1tR/qRAGzYL+AcKGZ2k2jRMvPUtkaC11QaXOJ04Qurjd58A== 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 DBFC41D275 for ; Mon, 16 Dec 2024 23:54:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNJyW-0007uW-PN; Mon, 16 Dec 2024 17:54:04 -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 1tNJyV-0007uM-V2 for help-guix@gnu.org; Mon, 16 Dec 2024 17:54:03 -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 1tNJyT-0004It-DH for help-guix@gnu.org; Mon, 16 Dec 2024 17:54:03 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id 5FA543722A4; Mon, 16 Dec 2024 22:53:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1734389638; bh=rxWswkIUKasZTRNcLiQQZ7J6+QpGYBzVUaQH5Qof1Q0=; h=From:To:Subject:Date; b=GWMfjDaVZYpWPs8WKbvNPfTo/2RABR5Ael+w6FRwJiEueaCleF+Hiu04SxjUe032H O/2A+0PLiN5WcdqXqaeyQYJAqa5pUANQ7md4iRDB9Z0siGfO4q1zA9giDBLM4LP6lD 938TyiRD05m4Xn2pwtGMWhVP3RkeZp2diILoeE62xECNjMnf2owPS8P3ui1hyCiwwh R8XQEpqAVFQdJ0d2pVphpnWu+B0N4x6NtmCXXn6p/EykSiVjTSBIXGj2FW0RGtfDBI WSr3BuPt/xik+XYgvMWUBPKy6Y8/JHeAFAOHP4xSxuJQY+xxKfuP6uPGbCP3SIR3ZP j3ooYgQ5FmmkP+QvRdv54V6wJCOxeZuT4KEghKBLWkrXpPG9yWUD6dSLgpyeFPUmFU 61AvnJmnxDp7IGYkreY4bSMaiURksHgUrHgGdBdtIFcBkpiRf0o2UHS86Zflupuxmo XEvAtdOxznwrBbRUr0PW/Oup8lmW2JmB0hhszvP8RpZ6KcHj7EHfciCNsdmC8LpkWc rg9MydGQZqblX+Q4MWe1YLOrRaaplodqxnp0sqcsmB/J1CNRij7MdVzbz9/r/TB/3t wCG1yHRzqR1ONCx4G+ZF7GKDu9hEO/ClMWS2BUpL7u8+Tp3UM5D2oH9bIaBE3i9Y2a WxxihE9Mns58KOLVPdR3TVgI= Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id 8DFF33722A3 for ; Mon, 16 Dec 2024 22:53:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1734389637; bh=rxWswkIUKasZTRNcLiQQZ7J6+QpGYBzVUaQH5Qof1Q0=; h=From:To:Subject:Date; b=cM6vnD2mxdPx12yG3G+venT4qhkL6Qvbp/dkMibQr3V8dYNJXBwxQy3Wixv8lDNMd d+0w0m0+pr0o5j3NfyS2xxtBAW8Y7kDfdtOqFQh1SEMO/aNaNjZUzEdp6Ippq+yc3C 4+7FVpkNSd8pE8azytnEX1NHj2XIIuN8uU/vp72izp/ocPrZcruz8dcQzdL8VmvOSG Fdlv0QdDtjbyEPuKVBQfLMjn9eXSAflP3JCgHFJAl4YwFsJdadABxB0S7cfGhMAlPH vSind1ttstwVzX4S9+E6C5jgg07CWB7sFEzDZx5Ca1NNd4k1CgaQvjWFtVAzs+rN3I /TkoMVFHwNE2Kasm9420Ox/+Zc9T9rLh3b0su4uoz4XVww1E24mNrDzgDwvX9TBHlc O++kAISvpSxtN065aoUqi7PFkoI6dLJrwTiQKZpfY17n7PnAE35yV5MpWH0QX9u0cB jVFZQyeEBCSJ48RALl2JKc8BikCzy8LoWjhMRFtKUkkeBdLWn5DUPdNBcs0E2wVmfl cJhw7x6Z+fL2UGO0hRAaPut0MDk39oCqeaMUbjHq8NIVuI3jtMH/zhgrJk13+fhpyV Y02YDmSil62c3uXzmWHu/X0bfDlw2hTq4XtpONGnJhklShXncws4VzNZ71OZr2GBiz gcKBzJnkRnL/SrI5HLyuoXiI= From: Tomas Volf <~@wolfsden.cz> To: help-guix@gnu.org Subject: How to add the timer-trigger-action to a shepherd service? Mail-Followup-To: help-guix@gnu.org Date: Mon, 16 Dec 2024 23:53:57 +0100 Message-ID: <87cyhrb5oa.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_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 2.19 X-Spam-Score: 2.19 X-Migadu-Queue-Id: DBFC41D275 X-Migadu-Scanner: mx12.migadu.com X-TUID: /gHtq52Uqsfy --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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: =2D-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))) =2D-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 =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/wakFAmdgr4UOHH5Ad29sZnNk ZW4uY3oACgkQL7/ufbZ/wakYIhAApWvjsSguBy+Z5EVX76EsvJL6KLqRBNV0pfWT jICSJt6gjwzyHkx84e9hGXvzx8kZ/WHiSdd+tLotjcaaOEyETqtWFGj6yFE5YpjY HS9tsUIPDQLd6A7aoCjsPCBdrWgdx3z4Yh65jvYSqUIesE0CDXcq+I6XoEKPCVr+ glaoaEMZtyrM0XwaFBtJ0VoEPgveqBdYBJir46IOpRyJFiGltTlmpfk2mz40a6my 8QtacKHldloKe12tPoPhfgGANzCUV7s5xsUeTur2XclW9qhI+KGuQvCEZXASLFC+ 61Oo7l1wH6K6306Y2FDwnD0l45GNpdPKTFkaiIynoKINnQy92v5y6BxzjqoFrt/E d2CQlDOWikoF/iJR29RUsMVep5N14tqKVh3s9+2ZBGmG2Zr4CdrWo7OyZ3JU0Mwh HszrhRTqwtVZfv11YqmSt9WiIFbZBf1uCySQSnGiJFw5/EGdjjknJ8YcpmEAda9/ jPAwo9xz+V7q/TdOSigUTt4zabURiwOVsegOl76uSBGWp8SurkdWTZivGOnGhzGx vud58fX6U8HRI+dh6gwm9+P17enO3qonLPn62sTdqiJhDZM5WlpbJM/550upJAKr JA4byCd8Lyv0VIkrI9gv90KyUWsvI63csLKczPT+YJmDvcrvvhhBGlXt8s/L4W4r Q2CVax8= =q5j6 -----END PGP SIGNATURE----- --=-=-=--