From unknown Wed Aug 20 05:15:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#74082: guix-home: inconsistencies in log-files of shepherd services Resent-From: Dariqq Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 29 Oct 2024 09:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74082 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 74082@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.173019351718403 (code B ref -1); Tue, 29 Oct 2024 09:19:01 +0000 Received: (at submit) by debbugs.gnu.org; 29 Oct 2024 09:18:37 +0000 Received: from localhost ([127.0.0.1]:55926 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5iN2-0004ml-LX for submit@debbugs.gnu.org; Tue, 29 Oct 2024 05:18:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:41508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5iN0-0004md-Ut for submit@debbugs.gnu.org; Tue, 29 Oct 2024 05:18:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t5iMz-00011O-Nf for bug-guix@gnu.org; Tue, 29 Oct 2024 05:18:34 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t5iMx-0003Hm-74 for bug-guix@gnu.org; Tue, 29 Oct 2024 05:18:33 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B08BF240101 for ; Tue, 29 Oct 2024 10:18:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1730193507; bh=VMUgH0Qpxs7LxIWhIA8EpG5SjaIav3n3XShLWrVfRG4=; h=Message-ID:Date:MIME-Version:To:From:Subject:Content-Type: Content-Transfer-Encoding:From; b=J7YyoIYfO8F2V9oO0r2HYDjPn+EcjluffjEUJAz9UWXctA4lsN06/TfpM9qPOoCy/ kQwUoKNCu3TSNlOZ3eG9/BMjYpnrAcxedjaZTuLoi5SXjKYZJdegcrAZcQUoREWfkG izGjIB2Zi3H1U9q7vgQFzCKEaXOPZ8rFFi2Q+h5i+/z8bS2q15c0DoYWuz7/qJsgvo 0FeP1dw1kK922n31sSmiwCB79HpbxTmk4XBojp8NVtcwIv4WXj93dCuVg1+ZR/Sf/C qO1HbA/3Vy8t9O0vcxtTvJipHgJtD60rkkr2c/1MvReDRJQWpYgj0ncNFUEt48OzXp LeJHpMxMBEpZQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Xd4S318pnz6v04 for ; Tue, 29 Oct 2024 10:18:26 +0100 (CET) Message-ID: Date: Tue, 29 Oct 2024 09:18:22 +0000 MIME-Version: 1.0 Content-Language: en-US From: Dariqq Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=185.67.36.66; envelope-from=dariqq@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi, There seems to be an inconsistency with the log-files created by home shepherd service - The main shepherd and some other services (dbus, batsignal, unclutter) use .local/state/log/ (resp. $LOCAL_STATE_HOME/log) - Many other services (kodi, znc, parcimonie, ssh-agent) use the shepherd-variable %user-log-dir (from (shepherd support)) which is .local/state/shepherd (resp. $LOCAL_STATE_HOME/shepherd) which is certainly confusing. In particular this overrides the default shepherd log file in $LOCAL_STATE_HOME/shepherd. Some consistency would be nice here. If guix wants to deviate from the shepherd defaults (should the defaults be changed instead?, not sure if there is a standard location for user level logs) it should probably export this somewhere such that all services can easily reuse it. From unknown Wed Aug 20 05:15:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#74082: guix-home: inconsistencies in log-files of shepherd services Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 29 Oct 2024 10:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74082 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Dariqq , 74082@debbugs.gnu.org Received: via spool by 74082-submit@debbugs.gnu.org id=B74082.173019817630715 (code B ref 74082); Tue, 29 Oct 2024 10:37:01 +0000 Received: (at 74082) by debbugs.gnu.org; 29 Oct 2024 10:36:16 +0000 Received: from localhost ([127.0.0.1]:56150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5jaC-0007zL-8Z for submit@debbugs.gnu.org; Tue, 29 Oct 2024 06:36:16 -0400 Received: from 6.mo575.mail-out.ovh.net ([46.105.63.100]:36053) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5ja8-0007z8-Dh for 74082@debbugs.gnu.org; Tue, 29 Oct 2024 06:36:14 -0400 Received: from director1.ghost.mail-out.ovh.net (unknown [10.108.9.128]) by mo575.mail-out.ovh.net (Postfix) with ESMTP id 4Xd69k2MFbz1pq8 for <74082@debbugs.gnu.org>; Tue, 29 Oct 2024 10:36:09 +0000 (UTC) Received: from ghost-submission-5b5ff79f4f-zvnkc (unknown [10.111.182.101]) by director1.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 24E751FEB0; Tue, 29 Oct 2024 10:36:08 +0000 (UTC) Received: from ngraves.fr ([37.59.142.107]) by ghost-submission-5b5ff79f4f-zvnkc with ESMTPSA id sf4PK5i6IGer7QAAOndc0A (envelope-from ); Tue, 29 Oct 2024 10:36:08 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-107S001f114bf32-67c7-49ea-bd73-230faa9a2af9, 0CE63A758BBAB584BC146B19CC27A6CF98533BD7) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 86.246.19.221 From: Nicolas Graves In-Reply-To: References: Date: Tue, 29 Oct 2024 11:36:03 +0100 Message-ID: <877c9rnqlo.fsf@ngraves.fr> MIME-Version: 1.0 Content-Type: text/plain X-Ovh-Tracer-Id: 13445778164900160160 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeeftddrvdekuddguddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvffujghffffkgggtsehttdertddttddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepudekgfelgfelteetteejjeevfefgieethefftdevveehfffhveffhefgvefgveefnecuffhomhgrihhnpehushgvrdhlohgtrghlnecukfhppeduvdejrddtrddtrddupdekiedrvdegiedrudelrddvvddupdefjedrheelrddugedvrddutdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeejgedtkedvseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehjeehpdhmohguvgepshhmthhpohhuth DKIM-Signature: a=rsa-sha256; bh=K9olq/78HLM9p7noiMZYCZdf9fjMcFKpkJWC6Zgb2ig=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1730198170; v=1; b=FC+YNxvdX6pAnTauVcqXFPCkcaIg+vGjmd8rOqRYe1S/GmNShsSwu+8yd/ufXXXM1bpHLXEF EMtGgwU3exWPeGBmEhhAqwM11cxx9N4MIx02jOs1LmEBfX7DpaLoK+z2bZ/H8UcSbSQuuBTdRaj XwE4fdrO8ncTa1MTMUFCVJ08drMNlVBw2nrnlh+c337CWgLPuAw5aW7OjOXlsVhTkedZqIMFk2I holocA/GAtqPnB84dD/Ul2v8QFgsjqICeuQMNSs+M2noAiqFY34FZ0FpuEtzsGDbiZSf+Cq3OMw 3BmzqaR6+5917D3Uzvtj7l96XifJoNMG69ltyVsIgDFJw== X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 2024-10-29 09:18, Dariqq wrote: > Hi, > > There seems to be an inconsistency with the log-files created by home > shepherd service > > - The main shepherd and some other services (dbus, batsignal, unclutter) > use .local/state/log/ (resp. $LOCAL_STATE_HOME/log) > > - Many other services (kodi, znc, parcimonie, ssh-agent) use the > shepherd-variable %user-log-dir (from (shepherd support)) > which is .local/state/shepherd (resp. $LOCAL_STATE_HOME/shepherd) > > which is certainly confusing. > > In particular this overrides the default shepherd log file in > $LOCAL_STATE_HOME/shepherd. > > Some consistency would be nice here. > > If guix wants to deviate from the shepherd defaults (should the defaults > be changed instead?, not sure if there is a standard location for user > level logs) it should probably export this somewhere such that all > services can easily reuse it. IIRC, guix complies with shepherd defaults, and other services that use log are not yet updated (can be verified with a git blame). In RDE we chose log instead. I think this clarification is a welcome contribution, feel free to send a patch, I'll happily review it! -- Best regards, Nicolas Graves From unknown Wed Aug 20 05:15:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#74082: [PATCH] home: Use %user-log-dir as the log directory for all services. References: In-Reply-To: Resent-From: Dariqq Original-Sender: "Debbugs-submit" Resent-CC: , bug-guix@gnu.org Resent-Date: Tue, 29 Oct 2024 12:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74082 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 74082@debbugs.gnu.org Cc: Dariqq , ngraves@ngraves.fr, ( , Andrew Tropin , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Tanguy Le Carrour X-Debbugs-Original-Xcc: ( , Andrew Tropin , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Tanguy Le Carrour Received: via spool by 74082-submit@debbugs.gnu.org id=B74082.173020513311196 (code B ref 74082); Tue, 29 Oct 2024 12:33:01 +0000 Received: (at 74082) by debbugs.gnu.org; 29 Oct 2024 12:32:13 +0000 Received: from localhost ([127.0.0.1]:56314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5lOO-0002uW-Ee for submit@debbugs.gnu.org; Tue, 29 Oct 2024 08:32:12 -0400 Received: from mout02.posteo.de ([185.67.36.66]:46731) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5lOL-0002uO-Ef for 74082@debbugs.gnu.org; Tue, 29 Oct 2024 08:32:11 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id E089D240103 for <74082@debbugs.gnu.org>; Tue, 29 Oct 2024 13:32:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1730205121; bh=0/Fj1NP82YkmfsceISpgmx9xREmWbzQuGsfVuJGm8CI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=VOSjbKpb/GXnVSmqPWoVzHM6b6rhOKSocaCgJ3+lllfy3l4M0gipWSZhO0fRyezSO APRa+Ts5FrM6hlW7qVkNn1pLDWz5BOaPHJEMmrrJrxSf8z/E3a+I6z7ZJist8JA2X/ Y3nar9h49xnQYeFHst61mnNvt7xJxySe1GwOPEZBEHnsxmzjdZyOlyrHDASEvToevb g6xLZ037wRbyAclbdEQk2OaAIXXLW/6uzXjbV1QJl5WI9CIxUOZawico0uL0CHDmHG vCZ7L51jXtEBVho9thmBdqPK7KYIDHR+Hq1GHoSIWwde6KuubW/4jPI3I6lDeXTf2U yeNotwnQEngqg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Xd8lN6dkHz9rxL; Tue, 29 Oct 2024 13:32:00 +0100 (CET) From: Dariqq Date: Tue, 29 Oct 2024 12:29:04 +0000 Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * 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 --- This patch fixes the inconsistent use of "LOCAL_STATE_HOME/log/" vs "LOCAL_STATE_HOME/shepherd/" for logfiles by changing the (remaining) shepherd services to the shepherd variable %user-log-dir i.e. LOCAL_STATE_DIR/shepherd. I also removed the --log-file argument from the autostart shepherd invocation which makes it log to the default location LOCAL_STATE_DIR/shepherd/shepherd.log and removed creation of the shepherd log dir. (comment says shepherd >= 0.9.2 should handle creation of the directory) Have only tested it with dbus-service and the autostart shepherd because I dont use the other ones. There is still another slight inconsistency with other home-services that let-bind the logdir, but this is less of an issue imo. gnu/home/services/desktop.scm | 16 ++++++---------- gnu/home/services/pm.scm | 8 +++----- gnu/home/services/shepherd.scm | 18 +++++------------- 3 files changed, 14 insertions(+), 28 deletions(-) diff --git a/gnu/home/services/desktop.scm b/gnu/home/services/desktop.scm index dc9de168b7..fc96ce9295 100644 --- a/gnu/home/services/desktop.scm +++ 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"))) (stop #~(make-kill-destructor))))) (define (home-dbus-environment-variables config) @@ -352,7 +350,8 @@ (define (home-unclutter-shepherd-service config) ;; Depend on 'x11-display', which sets 'DISPLAY' if an X11 server is ;; available, and fails to start otherwise. (requirement '(x11-display)) - (modules '((srfi srfi-1) + (modules '((shepherd support) ;for %user-log-dir + (srfi srfi-1) (srfi srfi-26))) (one-shot? #t) (start #~(lambda _ @@ -369,11 +368,8 @@ (define (home-unclutter-shepherd-service config) (cons (string-append "DISPLAY=" (getenv "DISPLAY")) (remove (cut string-prefix? "DISPLAY=" <>) (default-environment-variables))) - #:log-file (string-append - (or (getenv "XDG_STATE_HOME") - (format #f "~a/.local/state" - (getenv "HOME"))) - "/log/unclutter.log"))))))) + #:log-file + (string-append %user-log-dir "/unclutter.log"))))))) (define home-unclutter-service-type (service-type diff --git a/gnu/home/services/pm.scm b/gnu/home/services/pm.scm index d8361fd214..00e3138508 100644 --- a/gnu/home/services/pm.scm +++ b/gnu/home/services/pm.scm @@ -88,6 +88,7 @@ (define (home-batsignal-shepherd-services config) (list (shepherd-service (provision '(batsignal)) (documentation "Run the batsignal battery-watching daemon.") + (modules '((shepherd support))) ;for '%user-log-dir' (start #~(make-forkexec-constructor (append (list #$(file-append batsignal "/bin/batsignal") "-w" (number->string #$warning-level) @@ -127,11 +128,8 @@ (define (home-batsignal-shepherd-services config) (if #$ignore-missing? (list "-i") (list))) - #:log-file (string-append - (or (getenv "XDG_STATE_HOME") - (format #f "~a/.local/state" - (getenv "HOME"))) - "/log/batsignal.log"))) + #:log-file + (string-append %user-log-dir "/batsignal.log"))) (stop #~(make-kill-destructor)))))) (define home-batsignal-service-type diff --git a/gnu/home/services/shepherd.scm b/gnu/home/services/shepherd.scm index 5ea8462020..034a7837ef 100644 --- a/gnu/home/services/shepherd.scm +++ b/gnu/home/services/shepherd.scm @@ -120,19 +120,11 @@ (define (launch-shepherd-gexp config) (or (getenv "XDG_RUNTIME_DIR") (format #f "/run/user/~a" (getuid))) "/shepherd/socket")) - (let* ((state-dir (or (getenv "XDG_STATE_HOME") - (format #f "~a/.local/state" - (getenv "HOME")))) - (log-dir (string-append state-dir "/log"))) - ;; TODO: Remove it, 0.9.2 creates it automatically? - ((@ (guix build utils) mkdir-p) log-dir) - (system* - #$(file-append shepherd "/bin/shepherd") - "--logfile" - (string-append log-dir "/shepherd.log") - #$@(if silent? '("--silent") '()) - "--config" - #$(home-shepherd-configuration-file config))))) + (system* + #$(file-append shepherd "/bin/shepherd") + #$@(if silent? '("--silent") '()) + "--config" + #$(home-shepherd-configuration-file config)))) #~""))) (define (reload-configuration-gexp config) base-commit: 4491dec50a97dbdebd7dd6d41a5596358b155b79 -- 2.46.0 From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 02 06:25:12 2024 Received: (at control) by debbugs.gnu.org; 2 Nov 2024 10:25:12 +0000 Received: from localhost ([127.0.0.1]:53193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t7BJg-0005qL-3i for submit@debbugs.gnu.org; Sat, 02 Nov 2024 06:25:12 -0400 Received: from mout01.posteo.de ([185.67.36.65]:57195) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t7BJd-0005kg-NP for control@debbugs.gnu.org; Sat, 02 Nov 2024 06:25:11 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 3ACDF240027 for ; Sat, 2 Nov 2024 11:25:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1730543104; bh=//cVPLXRFGRQm+cJ08PLSpntW3M6iR4YP8MHo8DptCQ=; h=Message-ID:Date:MIME-Version:To:Subject:From:Content-Type: Content-Transfer-Encoding:From; b=N/b/OpVZ7qaiEI5bWHRWnqVlJaTd6/JOx/E0A3YAQCbbusfNbO5cLL2JuKRjCgwOY mduuCxjB3TJqpaswoLTpvlV4NX4IiBkkkBbD1Hl9jJhUYPDT6AFS96j2wRK+quB2ex 5xInFq+naKz8mgVmR5HN5rhFERCsIrSwztBs6sXDf4adRJONeZZBWPMzWKFnYXFKh6 z71BbrBjwPztUTbJp+ReMWMaNEEi8aAI0wbNcnIt+0FLZFCzYOn9PACP9Y+Y7Qmls1 Py79n7Sf02siyC6Jt4BGdesI6lu78eNyeceA8ATVlo4EjyPZE9yT9ewfCsrkWh535Y +6vN+vrC/KIqQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XgYl36Y5Wz9rxL for ; Sat, 2 Nov 2024 11:25:03 +0100 (CET) Message-ID: Date: Sat, 2 Nov 2024 10:24:59 +0000 MIME-Version: 1.0 To: control@debbugs.gnu.org Subject: control message for bug #74082 Content-Language: en-US From: Dariqq Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 74082 + patch quit From unknown Wed Aug 20 05:15:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#74082: guix-home: inconsistencies in log-files of shepherd services Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 10 Nov 2024 23:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74082 X-GNU-PR-Package: guix X-GNU-PR-Keywords: patch To: Dariqq , ngraves@ngraves.fr Cc: paren@disroot.org, Tanguy Le Carrour , 74082@debbugs.gnu.org, Andrew Tropin Received: via spool by 74082-submit@debbugs.gnu.org id=B74082.173128139013777 (code B ref 74082); Sun, 10 Nov 2024 23:30:03 +0000 Received: (at 74082) by debbugs.gnu.org; 10 Nov 2024 23:29:50 +0000 Received: from localhost ([127.0.0.1]:57017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAHNO-0003a9-2y for submit@debbugs.gnu.org; Sun, 10 Nov 2024 18:29:50 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAHNL-0003Zn-1s for 74082@debbugs.gnu.org; Sun, 10 Nov 2024 18:29:48 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tAHNE-0006bN-0O; Sun, 10 Nov 2024 18:29:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=50O94/V/2rffgkJH9wzzgCx6PPzY2m816S4JFPSjwPA=; b=H0j0f+g2NUbgLGYlHoyJ ce53Jko5K7jB+1ppPSzWANvVu1gB2bcBaOZ+mZdFUuutcJHi9fFR0dbATSr8X7qG0bgEDfhcCW2ja gNHnYe/wMexX4rxe6pbRyuywMfnvG261fuTo8XwIdOQFmRMW+6Wjx93LVHZ6bJYMyovpRxtaw0J26 tEdHRMbDv1ezgrERVyOux8dnrt3DvcbKy5E5NssKTWEjgV+hpZYkcfE4v3R/BkoUBwhfh7/NnK5jF DHL4bMbeLnTJVBMbB3FZhS7evaAf4R3kcGbyEEfWJ3jS9k8ouJOTk2xozxCoFeETdCjqyh33f1zqc 8QUl4iDxwX0bJg==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: (dariqq@posteo.net's message of "Tue, 29 Oct 2024 12:29:04 +0000") References: Date: Mon, 11 Nov 2024 00:29:37 +0100 Message-ID: <87h68evfa6.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Dariqq 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=3D1" > (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=E2=80=99. From unknown Wed Aug 20 05:15:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#74082: guix-home: inconsistencies in log-files of shepherd services Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 11 Nov 2024 22:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74082 X-GNU-PR-Package: guix X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Dariqq Cc: paren@disroot.org, Tanguy Le Carrour , 74082@debbugs.gnu.org, Andrew Tropin Received: via spool by 74082-submit@debbugs.gnu.org id=B74082.173136300726899 (code B ref 74082); Mon, 11 Nov 2024 22:11:01 +0000 Received: (at 74082) by debbugs.gnu.org; 11 Nov 2024 22:10:07 +0000 Received: from localhost ([127.0.0.1]:59536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAcbn-0006zh-4C for submit@debbugs.gnu.org; Mon, 11 Nov 2024 17:10:07 -0500 Received: from 5.mo584.mail-out.ovh.net ([188.165.44.50]:48729) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAcbj-0006xc-El for 74082@debbugs.gnu.org; Mon, 11 Nov 2024 17:10:06 -0500 Received: from director2.ghost.mail-out.ovh.net (unknown [10.109.176.70]) by mo584.mail-out.ovh.net (Postfix) with ESMTP id 4XnNyK4SsBz1CH1 for <74082@debbugs.gnu.org>; Mon, 11 Nov 2024 22:10:01 +0000 (UTC) Received: from ghost-submission-5b5ff79f4f-2dsqj (unknown [10.110.164.1]) by director2.ghost.mail-out.ovh.net (Postfix) with ESMTPS id C80441FE89; Mon, 11 Nov 2024 22:10:00 +0000 (UTC) Received: from ngraves.fr ([37.59.142.97]) by ghost-submission-5b5ff79f4f-2dsqj with ESMTPSA id +nPVI7iAMmfxuBEAVLPGQw (envelope-from ); Mon, 11 Nov 2024 22:10:00 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-97G002dd20f2a8-c19c-4680-9730-85314dc283b0, E78387A624BFA7BF6E2855E060885FD238E6A798) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 90.92.117.144 From: Nicolas Graves In-Reply-To: <87h68evfa6.fsf_-_@gnu.org> References: <87h68evfa6.fsf_-_@gnu.org> Date: Mon, 11 Nov 2024 23:10:00 +0100 Message-ID: <87frnx5snb.fsf@ngraves.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Ovh-Tracer-Id: 9275444907992867525 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeefuddruddvgdduheeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefujghffffkgggtgfesthhqredttddtjeenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeffudelkeejveetleeuffejfefftefhhfffuedtteethfelueelveffjedvffdtffenucfkphepuddvjedrtddrtddruddpledtrdelvddruddujedrudeggedpfeejrdehledrudegvddrleejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeejgedtkedvseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehkeegmgdpmhhouggvpehsmhhtphhouhht DKIM-Signature: a=rsa-sha256; bh=lYBlcf8SoxV3Y04ydL+dVKowyAt5YroA5GMgsmeWszk=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1731363001; v=1; b=mfCmkS+zmvzf8U1syhP+ptb/1tyP2q7D3KwmjCW4e8ZUK4eBg1CJCNBuOY2aJ30uQNFhKLNX UInYM1gNeOKTn8hUqnv8fLss+PF0dkXKO/lcXSBpr6BK+8Zr+L71gvsR4QKTA/HYTftthEWufPY M0pmsuRgHfIhl5bZQXu4XFF2PJzP1ulJSTWvu35ZdEIgabiFT9c9+Q7M/0hpXuJu7kJiL+g/mGz 6szMswusDD/04dWQCNGVkRFdJTdtl0P0Og3Rg+6w2ddKgQMpHowa64m0P2qjYza84c7TbFR/Zae xUE4INF1NlX+ogHAOKoZg/G7kUvUPF5KdpDvWWNniqA/g== X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 2024-11-11 00:29, Ludovic Court=C3=A8s wrote: > > Nicolas, can you confirm that this is what you had in mind? > > At first sight it LGTM. Sorry for the late answer, this is indeed what I had in mind. Untested on my side, but LGTM too. --=20 Best regards, Nicolas Graves From unknown Wed Aug 20 05:15:36 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Dariqq Subject: bug#74082: closed (Re: bug#74082: guix-home: inconsistencies in log-files of shepherd services) Message-ID: References: <87o729va7q.fsf@gnu.org> X-Gnu-PR-Message: they-closed 74082 X-Gnu-PR-Package: guix X-Gnu-PR-Keywords: patch Reply-To: 74082@debbugs.gnu.org Date: Wed, 20 Nov 2024 21:59:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1732139941-9090-1" This is a multi-part message in MIME format... ------------=_1732139941-9090-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #74082: guix-home: inconsistencies in log-files of shepherd services which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 74082@debbugs.gnu.org. --=20 74082: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D74082 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1732139941-9090-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 74082-done) by debbugs.gnu.org; 20 Nov 2024 21:58:46 +0000 Received: from localhost ([127.0.0.1]:48051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDsik-0002M8-7N for submit@debbugs.gnu.org; Wed, 20 Nov 2024 16:58:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDsii-0002Lu-61 for 74082-done@debbugs.gnu.org; Wed, 20 Nov 2024 16:58:44 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tDsib-00076S-Gg; Wed, 20 Nov 2024 16:58:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=pliAU6eOEeoWjVOty3k2pykyW4pMUWfQRfqN1b2+XI8=; b=h4dAZrhdThf9oYxJODKj hwYeoCFQhfLlTRz8iUm4v1bubE5B3HlpIwgU6eL8Yt34wTeAxvoe/na23lk03FBLEcDh0ChSRAg12 Gkv3qGyJaw64l7WRVbodCqI5EcRfDlXe3XgKauatGu6U/5ZfvWh0dc72w2c8uEXE5MAqSjnvJZl38 OfSHXWpXYF5Lmbm5gxPH5Jsec8sMoUbDEwGQmtJj9kDonfFodCk9817sONNfvdx9+2bLgn0O3pTrL km7aRKnPb2rnISo2gjIZnTfNRZ8ivNaeHXrWytTURt0gVn1jIi1f/53r3zCwFLh9gH3V877DhYHqb Ox+i6abyI52v5w==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Nicolas Graves Subject: Re: bug#74082: guix-home: inconsistencies in log-files of shepherd services In-Reply-To: <87frnx5snb.fsf@ngraves.fr> (Nicolas Graves's message of "Mon, 11 Nov 2024 23:10:00 +0100") References: <87h68evfa6.fsf_-_@gnu.org> <87frnx5snb.fsf@ngraves.fr> Date: Wed, 20 Nov 2024 22:58:33 +0100 Message-ID: <87o729va7q.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74082-done Cc: Dariqq , paren@disroot.org, Tanguy Le Carrour , 74082-done@debbugs.gnu.org, Andrew Tropin X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Nicolas Graves skribis: > On 2024-11-11 00:29, Ludovic Court=C3=A8s wrote: >> >> Nicolas, can you confirm that this is what you had in mind? >> >> At first sight it LGTM. > > Sorry for the late answer, this is indeed what I had in mind. Untested > on my side, but LGTM too. Alright. Applied, thanks, Dariqq! ------------=_1732139941-9090-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 29 Oct 2024 09:18:37 +0000 Received: from localhost ([127.0.0.1]:55926 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5iN2-0004ml-LX for submit@debbugs.gnu.org; Tue, 29 Oct 2024 05:18:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:41508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5iN0-0004md-Ut for submit@debbugs.gnu.org; Tue, 29 Oct 2024 05:18:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t5iMz-00011O-Nf for bug-guix@gnu.org; Tue, 29 Oct 2024 05:18:34 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t5iMx-0003Hm-74 for bug-guix@gnu.org; Tue, 29 Oct 2024 05:18:33 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B08BF240101 for ; Tue, 29 Oct 2024 10:18:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1730193507; bh=VMUgH0Qpxs7LxIWhIA8EpG5SjaIav3n3XShLWrVfRG4=; h=Message-ID:Date:MIME-Version:To:From:Subject:Content-Type: Content-Transfer-Encoding:From; b=J7YyoIYfO8F2V9oO0r2HYDjPn+EcjluffjEUJAz9UWXctA4lsN06/TfpM9qPOoCy/ kQwUoKNCu3TSNlOZ3eG9/BMjYpnrAcxedjaZTuLoi5SXjKYZJdegcrAZcQUoREWfkG izGjIB2Zi3H1U9q7vgQFzCKEaXOPZ8rFFi2Q+h5i+/z8bS2q15c0DoYWuz7/qJsgvo 0FeP1dw1kK922n31sSmiwCB79HpbxTmk4XBojp8NVtcwIv4WXj93dCuVg1+ZR/Sf/C qO1HbA/3Vy8t9O0vcxtTvJipHgJtD60rkkr2c/1MvReDRJQWpYgj0ncNFUEt48OzXp LeJHpMxMBEpZQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Xd4S318pnz6v04 for ; Tue, 29 Oct 2024 10:18:26 +0100 (CET) Message-ID: Date: Tue, 29 Oct 2024 09:18:22 +0000 MIME-Version: 1.0 Content-Language: en-US To: bug-guix@gnu.org From: Dariqq Subject: guix-home: inconsistencies in log-files of shepherd services Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=185.67.36.66; envelope-from=dariqq@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi, There seems to be an inconsistency with the log-files created by home shepherd service - The main shepherd and some other services (dbus, batsignal, unclutter) use .local/state/log/ (resp. $LOCAL_STATE_HOME/log) - Many other services (kodi, znc, parcimonie, ssh-agent) use the shepherd-variable %user-log-dir (from (shepherd support)) which is .local/state/shepherd (resp. $LOCAL_STATE_HOME/shepherd) which is certainly confusing. In particular this overrides the default shepherd log file in $LOCAL_STATE_HOME/shepherd. Some consistency would be nice here. If guix wants to deviate from the shepherd defaults (should the defaults be changed instead?, not sure if there is a standard location for user level logs) it should probably export this somewhere such that all services can easily reuse it. ------------=_1732139941-9090-1--