mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
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:
parent
bb15471e73
commit
b229803a78
1 changed files with 9 additions and 5 deletions
|
@ -15350,11 +15350,15 @@ gexps to introduce job definitions that are passed to mcron
|
||||||
|
|
||||||
(operating-system
|
(operating-system
|
||||||
;; @dots{}
|
;; @dots{}
|
||||||
(services (cons (service mcron-service-type
|
|
||||||
(mcron-configuration
|
;; %BASE-SERVICES already includes an instance of
|
||||||
(jobs (list garbage-collector-job
|
;; '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
|
updatedb-job
|
||||||
idutils-job))))
|
idutils-job))
|
||||||
%base-services)))
|
%base-services)))
|
||||||
@end lisp
|
@end lisp
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue