[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/03: doc: Update mcron example.
From: |
guix-commits |
Subject: |
03/03: doc: Update mcron example. |
Date: |
Fri, 27 Nov 2020 18:06:45 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit b229803a78963429793967e309c455508f9811d1
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Nov 27 22:12:32 2020 +0100
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(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index 6a68b84..b0126b9 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