GNU bug report logs - #47238
[PATCH] services: mcron: Export procedures for shepherd service

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Xinglu Chen <public@HIDDEN>; Keywords: patch; dated Thu, 18 Mar 2021 15:04:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 47238 <at> debbugs.gnu.org:


Received: (at 47238) by debbugs.gnu.org; 28 Mar 2021 20:12:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 28 16:12:02 2021
Received: from localhost ([127.0.0.1]:47110 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lQblR-0008TT-Vo
	for submit <at> debbugs.gnu.org; Sun, 28 Mar 2021 16:12:02 -0400
Received: from eggs.gnu.org ([209.51.188.92]:46830)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1lQblP-0008TD-MI
 for 47238 <at> debbugs.gnu.org; Sun, 28 Mar 2021 16:12:00 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:58702)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>)
 id 1lQblJ-0005r9-Mi; Sun, 28 Mar 2021 16:11:53 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=44476 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1lQblJ-0004kZ-3I; Sun, 28 Mar 2021 16:11:53 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Xinglu Chen <public@HIDDEN>
Subject: Re: bug#47238: [PATCH] services: mcron: Export procedures for
 shepherd service
References: <56019d274a5eaa54ce4d596550f1a96ec490bb39.1616079573.git.public@HIDDEN>
Date: Sun, 28 Mar 2021 22:11:51 +0200
In-Reply-To: <56019d274a5eaa54ce4d596550f1a96ec490bb39.1616079573.git.public@HIDDEN>
 (Xinglu Chen's message of "Thu, 18 Mar 2021 16:03:17 +0100")
Message-ID: <87wntrt4vs.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Hi,
 Xinglu Chen <public@HIDDEN> skribis: > * 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 synci [...] 
 Content analysis details:   (1.3 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 2.0 PDS_OTHER_BAD_TLD      Untrustworthy TLDs
 [URI: yoctocell.xyz (xyz)]
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/,
 low trust [209.51.188.92 listed in list.dnswl.org]
X-Debbugs-Envelope-To: 47238
Cc: 47238 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

Hi,

Xinglu Chen <public@HIDDEN> skribis:

> * 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@HIDDEN

I=E2=80=99m often reluctant to exposing more than what=E2=80=99s strictly n=
ecessary
because that can then complicate maintenance work=E2=80=94we now have to ex=
tra
bindings to maintain.

In this case, it=E2=80=99s definitely not the end of the world, but I wonde=
r if
there are other ways we could achieve what you have in mind.  For
instance, could Guix Home reuse =E2=80=98mcron-service-type=E2=80=99 as is?=
  Or, with an
eye on getting Guix Home into Guix proper, are there some minimal
changes we could make to accommodate that?

(I have yet to play with Guix Home and to look at the implementation=E2=80=
=A6)

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#47238; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Mar 2021 15:03:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 18 11:03:29 2021
Received: from localhost ([127.0.0.1]:47693 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lMuBN-0000KQ-Jn
	for submit <at> 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 <public@HIDDEN>) id 1lMuBL-0000KI-IV
 for submit <at> 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 <public@HIDDEN>)
 id 1lMuBL-00070h-9T
 for guix-patches@HIDDEN; 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 <public@HIDDEN>)
 id 1lMuBI-0006vw-Vj
 for guix-patches@HIDDEN; Thu, 18 Mar 2021 11:03:27 -0400
From: Xinglu Chen <public@HIDDEN>
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=
To: guix-patches@HIDDEN
Subject: [PATCH] services: mcron: Export procedures for shepherd service
Message-Id: <56019d274a5eaa54ce4d596550f1a96ec490bb39.1616079573.git.public@HIDDEN>
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@HIDDEN;
 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-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: * 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, b [...] 
 Content analysis details:   (1.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -2.3 RCVD_IN_DNSWL_MED      RBL: Sender listed at https://www.dnswl.org/,
 medium trust [209.51.188.17 listed in list.dnswl.org]
 0.0 RCVD_IN_MSPIKE_H3      RBL: Good reputation (+3)
 [209.51.188.17 listed in wl.mailspike.net]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 2.0 PDS_OTHER_BAD_TLD      Untrustworthy TLDs
 [URI: yoctocell.xyz (xyz)]
 0.5 FROM_SUSPICIOUS_NTLD   From abused NTLD
 0.0 FROM_SUSPICIOUS_NTLD_FP From abused NTLD
 0.0 RCVD_IN_MSPIKE_WL      Mailspike good senders
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.2 (/)

* 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@HIDDEN

 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






Acknowledgement sent to Xinglu Chen <public@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#47238; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 28 Mar 2021 20:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.