From: "Ludovic Courtès" <ludo@gnu.org>
To: Dariqq <dariqq@posteo.net>, ngraves@ngraves.fr
Cc: paren@disroot.org, Tanguy Le Carrour <tanguy@bioneland.org>,
74082@debbugs.gnu.org, Andrew Tropin <andrew@trop.in>
Subject: bug#74082: guix-home: inconsistencies in log-files of shepherd services
Date: Mon, 11 Nov 2024 00:29:37 +0100 [thread overview]
Message-ID: <87h68evfa6.fsf_-_@gnu.org> (raw)
In-Reply-To: <e4d92abd5455196228421a9baaf7061dec7dd947.1730204944.git.dariqq@posteo.net> (dariqq@posteo.net's message of "Tue, 29 Oct 2024 12:29:04 +0000")
Hi,
Dariqq <dariqq@posteo.net> skribis:
> * gnu/home/services/desktop.scm (home-dbus-shepherd-services): Log to
> %user-log-dir.
> * gnu/home/services/desktop.scm (home-unclutter-shepherd-services): Same.
> * gnu/home/services/pm.scm (home-batsignal-shepherd-services): Same.
> * gnu/home/services/shepherd.scm (launch-shepherd-gexp): Don't overwrite
> default log-file.
>
> Change-Id: I2742371cbddd1bf4d981efc41f3eae8f148336be
[...]
> +++ b/gnu/home/services/desktop.scm
> @@ -298,6 +298,7 @@ (define (home-dbus-shepherd-services config)
> (list (shepherd-service
> (documentation "Run the D-Bus daemon in session-specific mode.")
> (provision '(dbus))
> + (modules '((shepherd support))) ;for '%user-log-dir'
> (start #~(make-forkexec-constructor
> (list #$(file-append (home-dbus-dbus config)
> "/bin/dbus-daemon")
> @@ -310,10 +311,7 @@ (define (home-dbus-shepherd-services config)
> (cons "DBUS_VERBOSE=1"
> (default-environment-variables))
> #:log-file
> - (format #f "~a/log/dbus.log"
> - (or (getenv "XDG_STATE_HOME")
> - (format #f "~a/.local/state"
> - (getenv "HOME"))))))
> + (string-append %user-log-dir "/dbus.log")))
Nicolas, can you confirm that this is what you had in mind?
At first sight it LGTM.
Ludo’.
next prev parent reply other threads:[~2024-11-10 23:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-29 9:18 bug#74082: guix-home: inconsistencies in log-files of shepherd services Dariqq
2024-10-29 10:36 ` Nicolas Graves
2024-10-29 12:29 ` bug#74082: [PATCH] home: Use %user-log-dir as the log directory for all services Dariqq
2024-11-10 23:29 ` Ludovic Courtès [this message]
2024-11-11 22:10 ` bug#74082: guix-home: inconsistencies in log-files of shepherd services Nicolas Graves
2024-11-20 21:58 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h68evfa6.fsf_-_@gnu.org \
--to=ludo@gnu.org \
--cc=74082@debbugs.gnu.org \
--cc=andrew@trop.in \
--cc=dariqq@posteo.net \
--cc=ngraves@ngraves.fr \
--cc=paren@disroot.org \
--cc=tanguy@bioneland.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.