GNU bug report logs -
#71118
[PATCH 0/5] More service logging to stderr
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Wed, 22 May 2024 14:05:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hello,
Ludovic Courtès <ludo <at> gnu.org> writes:
> * gnu/services/dbus.scm (dbus-shepherd-service): Remove ‘--syslog-only’
> option and pass #:log-file unconditionally.
>
> Change-Id: I9e42f241e08b95ff01e9ad69551bc2c7ce869d6d
> ---
> gnu/services/dbus.scm | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/gnu/services/dbus.scm b/gnu/services/dbus.scm
> index 8dee91a3f7b..1e1380185a4 100644
> --- a/gnu/services/dbus.scm
> +++ b/gnu/services/dbus.scm
> @@ -1,5 +1,5 @@
> ;;; GNU Guix --- Functional package management for GNU
> -;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2019, 2020, 2021 Ludovic Courtès <ludo <at> gnu.org>
> +;;; Copyright © 2013-2017, 2019-2021, 2024 Ludovic Courtès <ludo <at> gnu.org>
> ;;; Copyright © 2015 Sou Bunnbu <iyzsong <at> gmail.com>
> ;;; Copyright © 2021 Maxime Devos <maximedevos <at> telenet.be>
> ;;; Copyright © 2021 Brice Waegeneire <brice <at> waegenei.re>
> @@ -234,12 +234,12 @@ (define dbus-shepherd-service
> (requirement '(user-processes syslogd))
> (start #~(make-forkexec-constructor
> (list (string-append #$dbus "/bin/dbus-daemon")
> - "--nofork" "--system" "--syslog-only")
> + "--nofork" "--system")
> + #:log-file "/var/log/dbus-daemon.log"
> #$@(if verbose?
> ;; Since the verbose output goes to the console,
> ;; not syslog, add a log file to capture it.
> - '(#:environment-variables '("DBUS_VERBOSE=1")
> - #:log-file "/var/log/dbus-daemon.log")
> + '(#:environment-variables '("DBUS_VERBOSE=1"))
> '())
> #:pid-file "/run/dbus/pid"))
> (stop #~(make-kill-destructor)))))))
How does logging to a file instead of to /dev/log help Shepherd
producing better output? Does it read the log file? If so, couldn't it read
syslog as well?
--
Thanks,
Maxim
This bug report was last modified 350 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.