doc: Update mcron example.

This is a followup to 0468455e7d, which
added mcron to %BASE-SERVICES.

* doc/guix.texi (Scheduled Job Execution): Use 'simple-service'.
This commit is contained in:
Ludovic Courtès 2020-11-27 22:12:32 +01:00
parent bb15471e73
commit b229803a78
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -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