diff options
author | Ludovic Courtès <ludo@gnu.org> | 2020-11-27 22:12:32 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-11-28 00:06:14 +0100 |
commit | b229803a78963429793967e309c455508f9811d1 (patch) | |
tree | 414b6bad39cce7486cd714c0ce0e852af91b5c39 | |
parent | bb15471e7302cdf26289e03f82e2c098f5b9a32a (diff) | |
download | guix-b229803a78963429793967e309c455508f9811d1.tar.gz guix-b229803a78963429793967e309c455508f9811d1.zip |
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'.
-rw-r--r-- | doc/guix.texi | 14 |
1 files changed, 9 insertions, 5 deletions
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 |