From: "Ludovic Courtès" <ludo@gnu.org>
To: Robert Vollmert <rob@vllmrt.net>
Cc: 38429@debbugs.gnu.org
Subject: [bug#38429] [PATCH] Add scron service.
Date: Mon, 02 Dec 2019 10:01:56 +0100 [thread overview]
Message-ID: <87r21nksmz.fsf@gnu.org> (raw)
In-Reply-To: <20191129180721.13923-1-rob@vllmrt.net> (Robert Vollmert's message of "Fri, 29 Nov 2019 19:07:22 +0100")
Hello!
Robert Vollmert <rob@vllmrt.net> skribis:
> It's a simple replacement for the mcron service.
>
> If you have a mcron job definition like
>
> (define cron-job
> #~(job "*/15 * * * *" #$(program-file ...)))
>
> you can convert it into the valid scron job
>
> (define cron-job
> (scron-job (schedule "/15 * * * *")
> (program-file ...)))
Nice.
> +(define scron-service-type
> + (service-type (name 'scron)
> + (extensions
> + (list (service-extension shepherd-root-service-type
> + scron-shepherd-services)))
> + (compose concatenate)
> + (extend (lambda (config jobs)
> + (scron-configuration
> + (inherit config)
> + (jobs (append (scron-configuration-jobs config)
> + jobs)))))
> + (default-value (scron-configuration))))
Could you add a ‘description’ field with a short blurb (you can use
Texinfo markup)?
Also, could you add it to guix.texi, presumably under “Scheduled Job
Execution”?
Last, it would be great if you could add a test, similar to the mcron
test that’s in (gnu tests base).
Thanks in advance!
Ludo’.
next prev parent reply other threads:[~2019-12-02 8:46 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-29 17:53 [bug#38429] [PATCH] Add scron service Robert Vollmert
2019-11-29 18:07 ` Robert Vollmert
2019-12-02 9:01 ` Ludovic Courtès [this message]
2019-12-03 12:46 ` [bug#38429] [PATCH 1/5] document scron Robert Vollmert
2019-12-03 12:46 ` [bug#38429] [PATCH 2/5] scron-service: remove job defaults Robert Vollmert
2019-12-03 12:46 ` [bug#38429] [PATCH 3/5] scron: Add description Robert Vollmert
2019-12-03 12:46 ` [bug#38429] [PATCH 4/5] scron: add system test Robert Vollmert
2019-12-03 12:50 ` Robert Vollmert
2019-12-03 12:46 ` [bug#38429] [PATCH 5/5] gnu/services: Add description to mcron-service-type Robert Vollmert
2019-12-07 23:32 ` [bug#38429] [PATCH 1/5] document scron Ludovic Courtès
2019-12-07 23:43 ` Robert Vollmert
2019-12-07 23:46 ` bug#38429: " Ludovic Courtès
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r21nksmz.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=38429@debbugs.gnu.org \
--cc=rob@vllmrt.net \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.