From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 03 16:35:36 2021 Received: (at submit) by debbugs.gnu.org; 3 Jul 2021 20:35:36 +0000 Received: from localhost ([127.0.0.1]:39941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzmMS-0003lG-4U for submit@debbugs.gnu.org; Sat, 03 Jul 2021 16:35:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:56790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzmMQ-0003l7-CJ for submit@debbugs.gnu.org; Sat, 03 Jul 2021 16:35:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzmMQ-0005bj-4t for guix-patches@gnu.org; Sat, 03 Jul 2021 16:35:34 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:44703) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzmMO-0007eJ-1U for guix-patches@gnu.org; Sat, 03 Jul 2021 16:35:33 -0400 Received: (Authenticated sender: brice@waegenei.re) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 292421C0002 for ; Sat, 3 Jul 2021 20:35:27 +0000 (UTC) From: Brice Waegeneire To: guix-patches@gnu.org Subject: [PATCH 0/2] Use log file for tor and ntp services Date: Sat, 3 Jul 2021 22:35:25 +0200 Message-Id: <20210703203525.9777-1-brice@waegenei.re> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=217.70.183.197; envelope-from=brice@waegenei.re; helo=relay5-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-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.6 (-) 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.6 (--) Brice Waegeneire (2): services: tor: Log to file. services: ntp: Log to file. gnu/services/networking.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 03 16:38:04 2021 Received: (at submit) by debbugs.gnu.org; 3 Jul 2021 20:38:04 +0000 Received: from localhost ([127.0.0.1]:39947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzmOq-0003pI-GT for submit@debbugs.gnu.org; Sat, 03 Jul 2021 16:38:04 -0400 Received: from lists.gnu.org ([209.51.188.17]:58892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzmOo-0003p4-Ko for submit@debbugs.gnu.org; Sat, 03 Jul 2021 16:38:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzmOo-00075B-AG for guix-patches@gnu.org; Sat, 03 Jul 2021 16:38:02 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:58517) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzmOm-0000ox-Ko for guix-patches@gnu.org; Sat, 03 Jul 2021 16:38:02 -0400 Received: (Authenticated sender: brice@waegenei.re) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 125D820002 for ; Sat, 3 Jul 2021 20:37:57 +0000 (UTC) From: Brice Waegeneire To: guix-patches@gnu.org Subject: [PATCH 1/2] services: tor: Log to file. Date: Sat, 3 Jul 2021 22:37:54 +0200 Message-Id: <20210703203754.10399-1-brice@waegenei.re> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210703203525.9777-1-brice@waegenei.re> References: <20210703203525.9777-1-brice@waegenei.re> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=217.70.183.200; envelope-from=brice@waegenei.re; helo=relay7-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-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.6 (-) 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.6 (--) * gnu/services/networking.scm (tor-shepherd-service)[start]: Specify log file. --- gnu/services/networking.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm index 1ae58041d3..0be4a21e7a 100644 --- a/gnu/services/networking.scm +++ b/gnu/services/networking.scm @@ -960,6 +960,7 @@ HiddenServicePort ~a ~a~%" (start #~(make-forkexec-constructor/container (list #$(file-append tor "/bin/tor") "-f" #$torrc) + #:log-file "/var/log/tor.log" #:mappings (list (file-system-mapping (source "/var/lib/tor") (target source) -- 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 03 16:38:17 2021 Received: (at submit) by debbugs.gnu.org; 3 Jul 2021 20:38:17 +0000 Received: from localhost ([127.0.0.1]:39949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzmOq-0003pK-Mw for submit@debbugs.gnu.org; Sat, 03 Jul 2021 16:38:17 -0400 Received: from lists.gnu.org ([209.51.188.17]:58922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzmOp-0003pB-93 for submit@debbugs.gnu.org; Sat, 03 Jul 2021 16:38:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzmOp-00076J-1j for guix-patches@gnu.org; Sat, 03 Jul 2021 16:38:03 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:58083) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzmOn-0000pN-KP for guix-patches@gnu.org; Sat, 03 Jul 2021 16:38:02 -0400 Received: (Authenticated sender: brice@waegenei.re) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id DB9B81C0006 for ; Sat, 3 Jul 2021 20:37:58 +0000 (UTC) From: Brice Waegeneire To: guix-patches@gnu.org Subject: [PATCH 2/2] services: ntp: Log to file. Date: Sat, 3 Jul 2021 22:37:58 +0200 Message-Id: <20210703203758.10478-1-brice@waegenei.re> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210703203525.9777-1-brice@waegenei.re> References: <20210703203525.9777-1-brice@waegenei.re> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=217.70.183.197; envelope-from=brice@waegenei.re; helo=relay5-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-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.6 (-) 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: -0.3 (/) * gnu/services/networking.scm (ntp-shepherd-service)[start]: Specify log file. --- gnu/services/networking.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm index 0be4a21e7a..eeb1487116 100644 --- a/gnu/services/networking.scm +++ b/gnu/services/networking.scm @@ -492,7 +492,8 @@ restrict source notrap nomodify noquery\n")) "-c" #$ntpd.conf "-u" "ntpd" #$@(if allow-large-adjustment? '("-g") - '())))) + '())) + #:log-file "/var/log/ntpd.log")) (stop #~(make-kill-destructor))))))))) (define %ntp-accounts -- 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 07 10:40:06 2021 Received: (at 49364) by debbugs.gnu.org; 7 Jul 2021 14:40:06 +0000 Received: from localhost ([127.0.0.1]:53208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m18ic-0000kq-EL for submit@debbugs.gnu.org; Wed, 07 Jul 2021 10:40:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:32920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m18ib-0000kE-C1 for 49364@debbugs.gnu.org; Wed, 07 Jul 2021 10:40:05 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60612) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m18iV-000454-P7; Wed, 07 Jul 2021 10:39:59 -0400 Received: from [2a01:cb18:832e:5f00:3563:417e:2a38:86d8] (port=43452 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m18iV-00040G-Gj; Wed, 07 Jul 2021 10:39:59 -0400 From: Mathieu Othacehe To: Brice Waegeneire Subject: Re: bug#49364: [PATCH 0/2] Use log file for tor and ntp services References: <20210703203525.9777-1-brice@waegenei.re> Date: Wed, 07 Jul 2021 16:39:58 +0200 In-Reply-To: <20210703203525.9777-1-brice@waegenei.re> (Brice Waegeneire's message of "Sat, 3 Jul 2021 22:35:25 +0200") Message-ID: <87fswq4281.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49364 Cc: 49364@debbugs.gnu.org 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 (---) Hey, > Brice Waegeneire (2): > services: tor: Log to file. > services: ntp: Log to file. It could be nice to add those log files to the ntp-configuration and the tor-configuration records as users may want to have control on logging. In the meantime, I guess you can proceed with this first implementation. Thanks, Mathieu From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 13 01:35:39 2021 Received: (at 49364-done) by debbugs.gnu.org; 13 Jul 2021 05:35:39 +0000 Received: from localhost ([127.0.0.1]:39180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3B51-0005bE-61 for submit@debbugs.gnu.org; Tue, 13 Jul 2021 01:35:39 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:48005) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3B4z-0005b0-4m for 49364-done@debbugs.gnu.org; Tue, 13 Jul 2021 01:35:37 -0400 Received: (Authenticated sender: brice@waegenei.re) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 30117200003; Tue, 13 Jul 2021 05:35:30 +0000 (UTC) From: Brice Waegeneire To: Mathieu Othacehe Subject: Re: bug#49364: [PATCH 0/2] Use log file for tor and ntp services References: <20210703203525.9777-1-brice@waegenei.re> <87fswq4281.fsf@gnu.org> Date: Tue, 13 Jul 2021 07:35:27 +0200 In-Reply-To: <87fswq4281.fsf@gnu.org> (Mathieu Othacehe's message of "Wed, 07 Jul 2021 16:39:58 +0200") Message-ID: <87k0luojxc.fsf_-_@waegenei.re> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49364-done Cc: 49364-done@debbugs.gnu.org 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.7 (-) Mathieu Othacehe writes: >> Brice Waegeneire (2): >> services: tor: Log to file. >> services: ntp: Log to file. > > It could be nice to add those log files to the ntp-configuration and the > tor-configuration records as users may want to have control on logging. ATM I don't have use for specifying the log file path, I can review such patch when someone write it. I wrote this one mainly to avoid thoses two services to write to tty1. > In the meantime, I guess you can proceed with this first implementation. Pushed asa5fa05dfc7e5bbe0191938b7824ec264aa842306 and 8bb45504dd9eb441d447e3f1dca174f0231c67d8. From unknown Tue Jun 17 22:26:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 10 Aug 2021 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator