From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlo Zancanaro Subject: Re: Error with mcron-configuration Date: Sat, 07 Jul 2018 11:40:04 +1000 Message-ID: <87r2kf7rij.fsf@zancanaro.id.au> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbcCz-0001xA-BQ for help-guix@gnu.org; Fri, 06 Jul 2018 21:40:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fbcCv-0002Ar-Vh for help-guix@gnu.org; Fri, 06 Jul 2018 21:40:21 -0400 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]:36384) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fbcCv-0002A8-Jm for help-guix@gnu.org; Fri, 06 Jul 2018 21:40:17 -0400 Received: by mail-pg1-x52a.google.com with SMTP id m19-v6so380876pgv.3 for ; Fri, 06 Jul 2018 18:40:17 -0700 (PDT) In-reply-to: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Jone Cc: help-guix --=-=-= Content-Type: text/plain; format=flowed 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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE1lpncq7JnOkt+LaeqdyPv9awIbwFAltAGfQACgkQqdyPv9aw Ibx94Q/8CvdsKLwBx3G1N4IqKNQfifBsJYSBo/cv3Y/4YjdNpJ2uYL6WEo8vwYfk lUgfLZCcdTizEtChkaC1ENyO17R+PYKVcpHv4Ceg1AIU1KhBbeC6LLZBQM1/F6pa NKZF4ha77UqKlcyAzxytxgPK/Vt8dVwYuP8vpFc5xMXyvYpgbofWGlo1VIY08Ory WAQ/TgXuQD9cogrvKM4kqy81FL4bWSn4moW5ozvP3jyyeTpVnbdj55wdBHTqkDZv PDsQtndK+N92GFOlCSGm+SoIujNxiwvB4g7zqVK4AYS/ygYqKdDwK6QhmMsfNQqj vzkHBumIUWx1M8GhqTGU5TCXixvTFyKVS7g5vwhgcfQBvCNupNPU25cPeMJLmv3h jq0BrNwo3G0pDqrCFV9/72kms7mrz3LOH2I5ErVCNG7/DTkAEmDNIBXEd9+Izj2O gO9PPU7Raf0UKWRayiNQPlvqZYmH7659juqlF+j/FDHAMpssOWvxIWHcy1/6D7AQ LP/WcGi4reyWYApgBN6HLnFf8mpcZvuZBdM8m2zsI6i/JO04yZt0MmuFVpuXAOaF IUo06Fv2Mn+R05s7KB34KTyaS5lTLpRdWpuETlj/GUqJfiEYrK0FVY8PVmw7GOLD YB3U4odz+90Unns4sasMDbfvl+76eeoRhslSTaL23UlBuDwom9U= =k+NL -----END PGP SIGNATURE----- --=-=-=--