(gnu home services mcron) module provides an interface to
GNU mcron, a daemon to run jobs at scheduled times (see GNU mcron). The information about system’s mcron is applicable
here (see 执行计划任务), the only difference for home
services is that they have to be declared in a
record instead of an
This is the type of the
mcron home service, whose value is an
home-mcron-configuration object. It allows to manage scheduled
This service type can be the target of a service extension that provides additional job specifications (see 合成服务). In other words, it is possible to define services that provide additional mcron jobs to run.
home-mcron-configuration fields are:
mcron) (type: file-like)
The mcron package to use.
()) (type: list-of-gexps)
#t) (type: boolean)
Log messages to standard output.
"~1@*~a ~a: ~a~%") (type: string)
(ice-9 format) format string for log messages. The default value
produces messages like "‘pid name: message"’
(see Invoking in GNU mcron). Each message is
also prefixed by a timestamp by GNU Shepherd.