From b229803a78963429793967e309c455508f9811d1 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Fri, 27 Nov 2020 22:12:32 +0100 Subject: doc: Update mcron example. This is a followup to 0468455e7d279c89ea3ad1b51935efb2b785ec47, which added mcron to %BASE-SERVICES. * doc/guix.texi (Scheduled Job Execution): Use 'simple-service'. --- doc/guix.texi | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'doc') diff --git a/doc/guix.texi b/doc/guix.texi index 6a68b84dc7..b0126b961d 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -15350,11 +15350,15 @@ gexps to introduce job definitions that are passed to mcron (operating-system ;; @dots{} - (services (cons (service mcron-service-type - (mcron-configuration - (jobs (list garbage-collector-job - updatedb-job - idutils-job)))) + + ;; %BASE-SERVICES already includes an instance of + ;; 'mcron-service-type', which we extend with additional + ;; jobs using 'simple-service'. + (services (cons (simple-service 'my-cron-jobs + mcron-service-type + (list garbage-collector-job + updatedb-job + idutils-job)) %base-services))) @end lisp -- cgit 1.4.1