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.
This commit is contained in:
Ludovic Courtès 2016-12-19 23:54:39 +01:00
parent f78903f363
commit dc0ef095b3
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5
3 changed files with 14 additions and 5 deletions

View file

@ -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)