mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-25 20:19:18 -05:00
services: connman: Redirect output to a log file.
* gnu/services/networking.scm (connman-shepherd-service): Pass #:log-file to 'make-forkexec-constructor'.
This commit is contained in:
parent
af41e504cf
commit
06e5c3af8b
1 changed files with 8 additions and 1 deletions
|
@ -985,7 +985,14 @@ (define (connman-shepherd-service config)
|
||||||
(list (string-append #$connman
|
(list (string-append #$connman
|
||||||
"/sbin/connmand")
|
"/sbin/connmand")
|
||||||
"-n" "-r"
|
"-n" "-r"
|
||||||
#$@(if disable-vpn? '("--noplugin=vpn") '()))))
|
#$@(if disable-vpn? '("--noplugin=vpn") '()))
|
||||||
|
|
||||||
|
;; As connman(8) notes, when passing '-n', connman
|
||||||
|
;; "directs log output to the controlling terminal in
|
||||||
|
;; addition to syslog." Redirect stdout and stderr
|
||||||
|
;; to avoid spamming the console (XXX: for some reason
|
||||||
|
;; redirecting to /dev/null doesn't work.)
|
||||||
|
#:log-file "/var/log/connman.log"))
|
||||||
(stop #~(make-kill-destructor)))))))
|
(stop #~(make-kill-destructor)))))))
|
||||||
|
|
||||||
(define connman-service-type
|
(define connman-service-type
|
||||||
|
|
Loading…
Reference in a new issue