From: Carlo Zancanaro <carlo@zancanaro.id.au>
To: Jone <yeger9@gmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Error with mcron-configuration
Date: Sat, 07 Jul 2018 11:40:04 +1000 [thread overview]
Message-ID: <87r2kf7rij.fsf@zancanaro.id.au> (raw)
In-Reply-To: <CAH6o9V-ggEmvN0eEwWDhexggPEn5fiHBSpr6o40E1JHkbXP9Ug@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 921 bytes --]
Hey Jone!
> ...
> (mcron-service-type (mcron-configuration (jobs (list
> fstrim-job))))
> ...
This is close, but very slightly wrong. `mcron-service-type` isn't
a procedure, so you can't call it like that. You have to use
`service`:
(service mcron-service-type
(mcron-configuration (jobs (list fstrim-job))))
The manual instead uses the `mcron-service` procedure, which I can
see you tried below...
> ...
> (mcron-service (mcron-configuration (jobs (list fstrim-job))))
> ...
... but in this case, you need to not wrap the jobs in
`mcron-configuration`. So something like this should work:
(mcron-service (list fstrim-job))
This is outlined in the manual in (guix) Scheduled Job Execution.
Were you looking elsewhere in the manual for your examples? If
there's something that pointed you in the wrong direction, please
let me know where so I can fix it up.
I hope that helps!
Carlo
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2018-07-07 1:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-07 0:39 Error with mcron-configuration Jone
2018-07-07 1:40 ` Carlo Zancanaro [this message]
2018-07-07 7:22 ` Pierre Neidhardt
2018-07-07 22:25 ` Jone
2018-07-09 17:40 ` Jone
2018-07-09 18:14 ` Clément Lassieur
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=87r2kf7rij.fsf@zancanaro.id.au \
--to=carlo@zancanaro.id.au \
--cc=help-guix@gnu.org \
--cc=yeger9@gmail.com \
/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.
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).