diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-12-19 23:54:39 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-12-19 23:57:20 +0100 |
commit | dc0ef095b32f57a935764d40530af0b32a01d715 (patch) | |
tree | 95f01c82d590bae7a02a7a5a0418621393873e78 /gnu/services/admin.scm | |
parent | f78903f36308081eeea52223fb3f5dca5096baef (diff) | |
download | patches-dc0ef095b32f57a935764d40530af0b32a01d715.tar patches-dc0ef095b32f57a935764d40530af0b32a01d715.tar.gz |
services: guix: Add 'log-file' configuration option.
* gnu/services/base.scm (<guix-configuration>)[log-file]: New field.
(guix-shepherd-service): Pass #:log-file to 'make-forkexec-constructor'.
* gnu/services/admin.scm (simple-rotation-config): Take a list of
files and join them with commas.
(%default-rotations): Add /var/log/guix-daemon.log.
* doc/guix.texi (Base Services): Document it.
Diffstat (limited to 'gnu/services/admin.scm')
-rw-r--r-- | gnu/services/admin.scm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gnu/services/admin.scm b/gnu/services/admin.scm index d8086b78d4..deaf677bd9 100644 --- a/gnu/services/admin.scm +++ b/gnu/services/admin.scm @@ -58,8 +58,8 @@ } ")) -(define (simple-rotation-config file) - (string-append file " { +(define (simple-rotation-config files) + #~(string-append #$(string-join files ",") " { sharedscripts } ")) @@ -72,7 +72,8 @@ (display #$(syslog-rotation-config %rotated-files) port) (display #$(simple-rotation-config - "/var/log/shepherd.log") + '("/var/log/shepherd.log" + "/var/log/guix-daemon.log")) port))))))) (define (default-jobs rottlog) |