diff options
author | Ludovic Courtès <ludo@gnu.org> | 2019-04-23 23:41:35 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-04-23 23:44:36 +0200 |
commit | 06e5c3af8b6d0ab2a369d5832a4f1756ae6c3570 (patch) | |
tree | c29e76ad218b51cd8df73f19352c62fb86ef6b8f | |
parent | af41e504cf0e4039615015cc49baa947e1715c47 (diff) | |
download | patches-06e5c3af8b6d0ab2a369d5832a4f1756ae6c3570.tar patches-06e5c3af8b6d0ab2a369d5832a4f1756ae6c3570.tar.gz |
services: connman: Redirect output to a log file.
* gnu/services/networking.scm (connman-shepherd-service): Pass
#:log-file to 'make-forkexec-constructor'.
-rw-r--r-- | gnu/services/networking.scm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm index 61561a40dd..03b2c6e1ec 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 |