From a5063dd623a0090ec91ff3f7ce2ebc7cdf28e5d6 Mon Sep 17 00:00:00 2001 From: Florian Pelz Date: Mon, 13 Apr 2020 08:01:57 +0200 Subject: [PATCH] [add dbus debug flags] --- gnu/packages/glib.scm | 3 +++ gnu/services/dbus.scm | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm index c98d8c18f5..227851f100 100644 --- a/gnu/packages/glib.scm +++ b/gnu/packages/glib.scm @@ -105,6 +105,9 @@ ;; Install the session bus socket under /tmp. "--with-session-socket-dir=/tmp" + ;; Debugging: + "--enable-verbose-mode" + ;; Use /etc/dbus-1 for system-wide config. ;; Look for configuration file under ;; /etc/dbus-1. This is notably required by diff --git a/gnu/services/dbus.scm b/gnu/services/dbus.scm index 7b3c8100e2..1270883c4a 100644 --- a/gnu/services/dbus.scm +++ b/gnu/services/dbus.scm @@ -189,7 +189,10 @@ includes the @code{etc/dbus-1/system.d} directories of each package listed in (requirement '(user-processes syslogd)) (start #~(make-forkexec-constructor (list (string-append #$dbus "/bin/dbus-daemon") - "--nofork" "--system" "--syslog-only") + "--nofork" "--system" "--syslog") + #:environment-variables + (cons "DBUS_VERBOSE=1" (default-environment-variables)) + #:log-file "/var/log/dbus-daemon" #:pid-file "/var/run/dbus/pid")) (stop #~(make-kill-destructor))))))) -- 2.26.0