Próximo: , Anterior: , Acima: Serviços pessoais   [Conteúdo][Índice]


13.3.3 Scheduled User’s Job Execution

The (gnu home services mcron) module provides an interface to GNU mcron, a daemon to run jobs at scheduled times (veja GNU mcron). The information about system’s mcron is applicable here (veja Execução de trabalho agendado), the only difference for home services is that they have to be declared in a home-environment record instead of an operating-system record.

Variável: home-mcron-service-type

This is the type of the mcron home service, whose value is a home-mcron-configuration object. It allows to manage scheduled tasks.

This service type can be the target of a service extension that provides additional job specifications (veja Composição de serviço). In other words, it is possible to define services that provide additional mcron jobs to run.

Data Type: home-mcron-configuration

Available home-mcron-configuration fields are:

mcron (default: mcron) (type: file-like)

The mcron package to use.

jobs (default: '()) (type: list-of-gexps)

This is a list of gexps (veja Expressões-G), where each gexp corresponds to an mcron job specification (veja mcron job specifications em GNU mcron).

log? (default: #t) (type: boolean)

Log messages to standard output.

log-format (default: "~1@*~a ~a: ~a~%") (type: string)

(ice-9 format) format string for log messages. The default value produces messages like "‘pid name: message"’ (veja Invoking em GNU mcron). Each message is also prefixed by a timestamp by GNU Shepherd.