unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Xinglu Chen <public@yoctocell.xyz>
To: 47238@debbugs.gnu.org
Subject: [bug#47238] [PATCH] services: mcron: Export procedures for shepherd service
Date: Thu, 18 Mar 2021 16:03:17 +0100	[thread overview]
Message-ID: <56019d274a5eaa54ce4d596550f1a96ec490bb39.1616079573.git.public@yoctocell.xyz> (raw)

* 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






             reply	other threads:[~2021-03-18 15:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-18 15:03 Xinglu Chen [this message]
2021-03-28 20:11 ` [bug#47238] [PATCH] services: mcron: Export procedures for shepherd service Ludovic Courtès
2021-03-28 21:31   ` Xinglu Chen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56019d274a5eaa54ce4d596550f1a96ec490bb39.1616079573.git.public@yoctocell.xyz \
    --to=public@yoctocell.xyz \
    --cc=47238@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).