From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SDwzNCJsU2BbNgAA0tVLHw (envelope-from ) for ; Thu, 18 Mar 2021 15:05:06 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sCPyLyJsU2B5RgAAB5/wlQ (envelope-from ) for ; Thu, 18 Mar 2021 15:05:06 +0000 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 7A84627660 for ; Thu, 18 Mar 2021 16:05:06 +0100 (CET) Received: from localhost ([::1]:57668 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMuCv-0007ow-Hk for larch@yhetil.org; Thu, 18 Mar 2021 11:05:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMuBv-0007ma-1y for guix-patches@gnu.org; Thu, 18 Mar 2021 11:04:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36149) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMuBu-0007QQ-QH for guix-patches@gnu.org; Thu, 18 Mar 2021 11:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lMuBu-0000LT-MF for guix-patches@gnu.org; Thu, 18 Mar 2021 11:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47238] [PATCH] services: mcron: Export procedures for shepherd service Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 18 Mar 2021 15:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47238 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47238@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16160798091270 (code B ref -1); Thu, 18 Mar 2021 15:04:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Mar 2021 15:03:29 +0000 Received: from localhost ([127.0.0.1]:47693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMuBN-0000KQ-Jn for submit@debbugs.gnu.org; Thu, 18 Mar 2021 11:03:29 -0400 Received: from lists.gnu.org ([209.51.188.17]:57572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMuBL-0000KI-IV for submit@debbugs.gnu.org; Thu, 18 Mar 2021 11:03:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMuBL-00070h-9T for guix-patches@gnu.org; Thu, 18 Mar 2021 11:03:27 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:54960 helo=mail.yoctocell.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMuBI-0006vw-Vj for guix-patches@gnu.org; Thu, 18 Mar 2021 11:03:27 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1616079798; bh=YUBlOTOoXK2/OA2tkyJf2QzRrQqVc1Xufqf6g72HPEw=; h=From:To:Subject:Date; b=OgQA4FoCHI/tdXwM22B7I0WI+OXHfmpKCxEljJYWXMrIRXAz4eHruIyo7UVxnZBLF CL8zaz2Qm3e7A/G9Cb0JTcwyGYpAwU8TIbz7J2/2zidPjbKCTSNyRsbwPbrfNz7Bfg 9QEu+uYu2LYFjGE5J/SoOw2gK/YA1b6GByojxC1E= Message-Id: <56019d274a5eaa54ce4d596550f1a96ec490bb39.1616079573.git.public@yoctocell.xyz> Date: Thu, 18 Mar 2021 16:03:17 +0100 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=87.96.130.155; envelope-from=public@yoctocell.xyz; helo=mail.yoctocell.xyz X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 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, FROM_SUSPICIOUS_NTLD=0.5, FROM_SUSPICIOUS_NTLD_FP=0.001, PDS_OTHER_BAD_TLD=1.999, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616079906; 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:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=/dcWz8ibZifQ7kNxNN/3rcvsbZkrROturIP75bgVheA=; b=PKe5iMENuc+t39/bL23NZIE0u5G1YqAa6kw3LVDWMPKFo54EFGrGI19t4plltajwzMCNO/ IaLNpYwfi8QDr6sx18YLCLW7OWahiMM4rZwGjthmpM0d571gRS0x3oNCfWewahA6iaABiF HTSR+HSRtKH0xFTJqpjkSUttGaF4IE6RyMdHA8he7wmX/nzgCqU9tdumeBs+5fmmQ/YQDp VthFEW0DLtbnh8YoE/jYDoTl6jXcqq2t0zCjbWfmyr0FrX0NkGHbZRTgRH5hPFPSkkQLQg CZGqKbJqvK7WFAZcK3e4xAjfWGUFEzQ09hkNczw15IoEhlQ8kdcysQklW6HwIQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616079906; a=rsa-sha256; cv=none; b=g7KCpy0RhasNfo1jdfAiNsRQCg49GEsCyo+NcT9GE9aq6WOyoHvtS2UwTMg0d1YU8cvqbm 01y2lVqLKMVHC/xN+sYhDHBk0OM7IDpdzIXoH3Q2383IGkj6QmkPrNYiGicAsXQRG5mD44 7aoT3iUVJ3VcYISrsnuW6q9JJB2uCfVr0zCqOq2yP9pkXrMddSXgPavtIDY3Y8uHqBTBYr ancQUl7+xwnUVF7kRZXmRWXGGFBq2EmHsGfT6NjxI0ildaoPpwPU5NWblsWLXmCvaAF8wZ J/3z+DvnR4GAE50dUIts17M10vscvesoIKZf8Ot4xUD/wfz7PDtqJ5PGNZxbBg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=OgQA4FoC; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=OgQA4FoC; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 7A84627660 X-Spam-Score: -0.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: ooMKI9g5g429 * gnu/services/mcron.scm (job-files): Export procedure. (shepherd-schedule-action): Likewise. --- I am going to write an mcron service for `guix home`[1] so users can run cron jobs for syncing mail, backups etc. It would be nice to be able to use these two procedures to avoid code duplication. [1]: https://yhetil.org/guix-devel/878s6u2pco.fsf@trop.in gnu/services/mcron.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/services/mcron.scm b/gnu/services/mcron.scm index bd4e6e7410..982af08596 100644 --- a/gnu/services/mcron.scm +++ b/gnu/services/mcron.scm @@ -31,6 +31,9 @@ mcron-configuration-mcron mcron-configuration-jobs + job-files + shepherd-schedule-action + mcron-service-type mcron-service)) base-commit: 9783645ee8eaf9c33ce952131e692fb2ff47ffc9 -- 2.31.0