summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBruno Victal <mirai@makinata.eu>2023-03-13 19:30:50 +0000
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-03-21 14:51:24 -0400
commitc88582a6740777b5f15690990b04cdd153905042 (patch)
treedbf8069e04747ed5f1ef9a704559ed170de0b601 /doc
parentedb398449f72d95334f78661b74fb9d0c9148eab (diff)
services: mcron: Add log-file and date-format fields.
* doc/guix.texi (Scheduled Job Execution): Document it. * gnu/services/mcron.scm (mcron-configuration)[log-file, date-format]: New field. (mcron-shepherd-services): Add log-file and date-format support. Use file-append instead of string-append. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 119ff8499bc..77ee2c6e30c 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -19363,12 +19363,18 @@ specifications,, mcron,GNU@tie{}mcron}).
19363@item @code{log?} (default: @code{#t}) (type: boolean) 19363@item @code{log?} (default: @code{#t}) (type: boolean)
19364Log messages to standard output. 19364Log messages to standard output.
19365 19365
19366@item @code{log-file} (default: @code{"/var/log/mcron.log"}) (type: string)
19367Log file location.
19368
19366@item @code{log-format} (default: @code{"~1@@*~a ~a: ~a~%"}) (type: string) 19369@item @code{log-format} (default: @code{"~1@@*~a ~a: ~a~%"}) (type: string)
19367@code{(ice-9 format)} format string for log messages. The default value 19370@code{(ice-9 format)} format string for log messages. The default value
19368produces messages like @samp{@var{pid} @var{name}: @var{message}} 19371produces messages like @samp{@var{pid} @var{name}: @var{message}}
19369(@pxref{Invoking mcron, Invoking,, mcron,GNU@tie{}mcron}). Each message 19372(@pxref{Invoking mcron, Invoking,, mcron,GNU@tie{}mcron}). Each message
19370is also prefixed by a timestamp by GNU Shepherd. 19373is also prefixed by a timestamp by GNU Shepherd.
19371 19374
19375@item @code{date-format} (type: maybe-string)
19376@code{(srfi srfi-19)} format string for date.
19377
19372@end table 19378@end table
19373@end deftp 19379@end deftp
19374@c %end of fragment 19380@c %end of fragment