mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
f78903f363
commit
dc0ef095b3
3 changed files with 14 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue