[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/08: services: connman: Redirect output to a log file.
From: |
guix-commits |
Subject: |
02/08: services: connman: Redirect output to a log file. |
Date: |
Tue, 23 Apr 2019 18:36:18 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 06e5c3af8b6d0ab2a369d5832a4f1756ae6c3570
Author: Ludovic Courtès <address@hidden>
Date: Tue Apr 23 23:41:35 2019 +0200
services: connman: Redirect output to a log file.
* gnu/services/networking.scm (connman-shepherd-service): Pass
#:log-file to 'make-forkexec-constructor'.
---
gnu/services/networking.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm
index 61561a4..03b2c6e 100644
--- a/gnu/services/networking.scm
+++ b/gnu/services/networking.scm
@@ -985,7 +985,14 @@ wireless networking."))))
(list (string-append #$connman
"/sbin/connmand")
"-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)))))))
(define connman-service-type
- branch master updated (e01bd1a -> f6beefa), guix-commits, 2019/04/23
- 08/08: doc: Refer to the es and zh_CN translations., guix-commits, 2019/04/23
- 06/08: nls: Fix guix-manual.zh_CN.po., guix-commits, 2019/04/23
- 01/08: guix system: Compute 'bootcfg' only for 'init' and 'reconfigure'., guix-commits, 2019/04/23
- 02/08: services: connman: Redirect output to a log file.,
guix-commits <=
- 04/08: doc: Add generated es.texi files., guix-commits, 2019/04/25
- 05/08: doc: Add zh_CN PO file., guix-commits, 2019/04/25
- 03/08: doc: Add Spanish translation., guix-commits, 2019/04/25