mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -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
|
||||
;; @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
|
||||
|
||||
|
|
Loading…
Reference in a new issue