From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Error with mcron-configuration Date: Sat, 07 Jul 2018 09:22:33 +0200 Message-ID: <87fu0vse6e.fsf@gmail.com> 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]:42332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbhYD-0004gO-Ol for help-guix@gnu.org; Sat, 07 Jul 2018 03:22:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fbhYD-0002Mp-0G for help-guix@gnu.org; Sat, 07 Jul 2018 03:22:37 -0400 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:51656) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fbhYC-0002MP-Os for help-guix@gnu.org; Sat, 07 Jul 2018 03:22:36 -0400 Received: by mail-wm0-x22c.google.com with SMTP id s12-v6so16692395wmc.1 for ; Sat, 07 Jul 2018 00:22:36 -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; charset=utf-8 Content-Transfer-Encoding: quoted-printable Jone writes: > (use-modules > ... > (gnu services mcron) ;; =E2=86=90 manual > ... > (define fstrim-job ;; =E2=86=90 manual > #~(job "10 10 * * 6" > "fstrim -a")) > ... > (services (cons* > ... > (mcron-service-type (mcron-configuration (jobs (list fstrim-job)))) ;;= =E2=86=90 > but here the question > ... Did you use `mcron-service' around `mcron-service-type'? > ... > (mcron-service (mcron-configuration (jobs (list fstrim-job)))) ;; =E2=86= =90 manual > ... `mcron-service' takes a list of jobs as argument, not an mcron-configuratio= n. From=20the manual: =2D-8<---------------cut here---------------start------------->8--- -- Scheme Procedure : mcron-service JOBS [#:mcron MCRON] Return an mcron service running MCRON that schedules JOBS, a list of gexps denoting mcron job specifications. This is a shorthand for: (service mcron-service-type (mcron-configuration (mcron mcron) (jobs jobs))) =2D-8<---------------cut here---------------end--------------->8--- So for you needs you'd need something like: =2D-8<---------------cut here---------------start------------->8--- (services (cons* (mcron-service (list fstrim-job)) ...) =2D-8<---------------cut here---------------end--------------->8--- Hope that helps! :) =2D-=20 Pierre Neidhardt Sorry, no fortune this time. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAltAajkACgkQm9z0l6S7 zH+Z/wf/QoHt7+QBfFQFwX5Dl5z1xYbLOAX8dc/sJGWP/u5k0LH/h9zSbsE0Nw5j e3h3Hfr4fLRRs9TcozHad5LIxPklzA1nWn0WhLuuQ0+0pgYjENgbqGhSwfX422Px cUdE7petZG3F4igoDyZD2T7IVH+0FGJhV99y6Bxwm2OyT7oPwkoM9jUNR9B9OcDQ rgTKM1I/fnz/ihDYagMMvHakpnPsnsXVxw0vZokj4V8dFsEAZQ2EB1I5LHCf2aZP ADEN9SgeALfQdIxUuhRy2dewmOFVyUgWj0mcKMZ3U3L/4MwBDk55v/Uhk5ALPBjk y1A2or7yi3DjC34CX7fTc4/MpYvVdA== =E38o -----END PGP SIGNATURE----- --=-=-=--