[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error with mcron-configuration

From: Carlo Zancanaro
Subject: Re: Error with mcron-configuration
Date: Sat, 07 Jul 2018 11:40:04 +1000
User-agent: mu4e 1.0; emacs 26.1

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!


Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]