From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 03 15:53:34 2022 Received: (at submit) by debbugs.gnu.org; 3 Feb 2022 20:53:34 +0000 Received: from localhost ([127.0.0.1]:58047 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFj6k-0002bh-MX for submit@debbugs.gnu.org; Thu, 03 Feb 2022 15:53:34 -0500 Received: from lists.gnu.org ([209.51.188.17]:41176) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFj6f-0002bU-Ld for submit@debbugs.gnu.org; Thu, 03 Feb 2022 15:53:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFj6f-0002Lh-Bq for guix-patches@gnu.org; Thu, 03 Feb 2022 15:53:29 -0500 Received: from dd30410.kasserver.com ([85.13.145.193]:45316) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFj6d-0000Vf-1O for guix-patches@gnu.org; Thu, 03 Feb 2022 15:53:29 -0500 Received: from dayas.lan (84-115-234-128.cable.dynamic.surfer.at [84.115.234.128]) by dd30410.kasserver.com (Postfix) with ESMTPSA id 4499011202F7; Thu, 3 Feb 2022 21:52:45 +0100 (CET) From: dannym@scratchpost.org To: guix-patches@gnu.org Subject: [PATCH 0/3] Make console agetty wait for syslogd to start up Date: Thu, 3 Feb 2022 21:52:43 +0100 Message-Id: <20220203205243.25095-1-dannym@scratchpost.org> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=85.13.145.193; envelope-from=dannym@scratchpost.org; helo=dd30410.kasserver.com 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, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit Cc: Danny Milosavljevic 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 (---) From: Danny Milosavljevic This patchset makes the console agetty wait for syslogd to start up. See also bug# 30464. Danny Milosavljevic (3): services: agetty: Add shepherd-requirement. services: %base-services: Adapt agetty-service-type to depend on syslogd. agetty-shepherd-service: Rename console agetty to "term-console" for clarity. doc/guix.texi | 4 ++++ gnu/services/base.scm | 15 ++++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 03 15:55:36 2022 Received: (at 53763) by debbugs.gnu.org; 3 Feb 2022 20:55:36 +0000 Received: from localhost ([127.0.0.1]:58054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFj8i-0002fR-0e for submit@debbugs.gnu.org; Thu, 03 Feb 2022 15:55:36 -0500 Received: from dd30410.kasserver.com ([85.13.145.193]:38788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFj8c-0002f7-83 for 53763@debbugs.gnu.org; Thu, 03 Feb 2022 15:55:35 -0500 Received: from dayas.lan (84-115-234-128.cable.dynamic.surfer.at [84.115.234.128]) by dd30410.kasserver.com (Postfix) with ESMTPSA id CE9A51120B23; Thu, 3 Feb 2022 21:55:28 +0100 (CET) From: dannym@scratchpost.org To: 53763@debbugs.gnu.org Subject: [PATCH 2/3] services: %base-services: Adapt agetty-service-type to depend on syslogd. Date: Thu, 3 Feb 2022 21:55:20 +0100 Message-Id: <20220203205521.25145-2-dannym@scratchpost.org> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220203205521.25145-1-dannym@scratchpost.org> References: <20220203205243.25095-1-dannym@scratchpost.org> <20220203205521.25145-1-dannym@scratchpost.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53763 Cc: Danny Milosavljevic 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 (-) From: Danny Milosavljevic Fixes . * gnu/services/base.scm (%base-services): Reorder syslog-service for clarity. [shepherd-requirement]: New field. --- gnu/services/base.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/services/base.scm b/gnu/services/base.scm index d6f584abdb..028426c3f8 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -2787,10 +2787,12 @@ (define %base-services (cons tty %default-console-font)) '("tty1" "tty2" "tty3" "tty4" "tty5" "tty6"))) + (syslog-service) (service agetty-service-type (agetty-configuration (extra-options '("-L")) ; no carrier detect (term "vt100") - (tty #f))) ; automatic + (tty #f) ; automatic + (shepherd-requirement '(syslogd)))) (service mingetty-service-type (mingetty-configuration (tty "tty1"))) @@ -2807,7 +2809,6 @@ (define %base-services (service static-networking-service-type (list %loopback-static-networking)) - (syslog-service) (service urandom-seed-service-type) (service guix-service-type) (service nscd-service-type) -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 03 15:55:37 2022 Received: (at 53763) by debbugs.gnu.org; 3 Feb 2022 20:55:37 +0000 Received: from localhost ([127.0.0.1]:58057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFj8j-0002ff-Fa for submit@debbugs.gnu.org; Thu, 03 Feb 2022 15:55:37 -0500 Received: from dd30410.kasserver.com ([85.13.145.193]:38790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFj8c-0002f8-8H for 53763@debbugs.gnu.org; Thu, 03 Feb 2022 15:55:35 -0500 Received: from dayas.lan (84-115-234-128.cable.dynamic.surfer.at [84.115.234.128]) by dd30410.kasserver.com (Postfix) with ESMTPSA id 076561120D87; Thu, 3 Feb 2022 21:55:29 +0100 (CET) From: dannym@scratchpost.org To: 53763@debbugs.gnu.org Subject: [PATCH 3/3] agetty-shepherd-service: Rename console agetty to "term-console" for clarity. Date: Thu, 3 Feb 2022 21:55:21 +0100 Message-Id: <20220203205521.25145-3-dannym@scratchpost.org> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220203205521.25145-1-dannym@scratchpost.org> References: <20220203205243.25095-1-dannym@scratchpost.org> <20220203205521.25145-1-dannym@scratchpost.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53763 Cc: Danny Milosavljevic 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 (-) From: Danny Milosavljevic * gnu/services/base.scm (agetty-shepherd-service)[provision]: Rename console agetty to "term-console". --- gnu/services/base.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/services/base.scm b/gnu/services/base.scm index 028426c3f8..12a3ef2e93 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -931,7 +931,7 @@ (define agetty-shepherd-service (list (shepherd-service (documentation "Run agetty on a tty.") - (provision (list (symbol-append 'term- (string->symbol (or tty "auto"))))) + (provision (list (symbol-append 'term- (string->symbol (or tty "console"))))) ;; Since the login prompt shows the host name, wait for the 'host-name' ;; service to be done. Also wait for udev essentially so that the tty -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 03 15:55:41 2022 Received: (at 53763) by debbugs.gnu.org; 3 Feb 2022 20:55:41 +0000 Received: from localhost ([127.0.0.1]:58061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFj8n-0002g1-04 for submit@debbugs.gnu.org; Thu, 03 Feb 2022 15:55:41 -0500 Received: from dd30410.kasserver.com ([85.13.145.193]:38786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFj8c-0002f6-83 for 53763@debbugs.gnu.org; Thu, 03 Feb 2022 15:55:39 -0500 Received: from dayas.lan (84-115-234-128.cable.dynamic.surfer.at [84.115.234.128]) by dd30410.kasserver.com (Postfix) with ESMTPSA id 9E2C111202F7; Thu, 3 Feb 2022 21:55:28 +0100 (CET) From: dannym@scratchpost.org To: 53763@debbugs.gnu.org Subject: [PATCH 1/3] services: agetty: Add shepherd-requirement. Date: Thu, 3 Feb 2022 21:55:19 +0100 Message-Id: <20220203205521.25145-1-dannym@scratchpost.org> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220203205243.25095-1-dannym@scratchpost.org> References: <20220203205243.25095-1-dannym@scratchpost.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 53763 Cc: Danny Milosavljevic 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 (-) From: Danny Milosavljevic * gnu/services/base.scm (): Add shepherd-requirement. * doc/guix.texi (agetty-configuration): Document it. --- doc/guix.texi | 4 ++++ gnu/services/base.scm | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index aaa7cbb66f..68c4c4086a 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -16634,6 +16634,10 @@ This option accepts, as an integer, the nice value with which to run the This option provides an ``escape hatch'' for the user to provide arbitrary command-line arguments to @command{agetty} as a list of strings. +@item @code{shepherd-requirement} (default: @code{'()}) +The option can be used to provides extra shepherd requirements (for example +@code{'syslogd}) to the respective @code{'term-}* shepherd service. + @end table @end deftp diff --git a/gnu/services/base.scm b/gnu/services/base.scm index fbd01e84d6..d6f584abdb 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -876,6 +876,8 @@ (define-record-type* ;; "Escape hatch" for passing arbitrary command-line arguments. (extra-options agetty-extra-options ;list of strings (default '())) + (shepherd-requirement agetty-shepherd-requirement ;list of SHEPHERD requirements + (default '())) ;;; XXX Unimplemented for now! ;;; (issue-file agetty-issue-file ;file-like ;;; (default #f)) @@ -924,7 +926,8 @@ (define agetty-shepherd-service host no-issue? init-string no-clear? local-line extract-baud? skip-login? no-newline? login-options chroot hangup? keep-baud? timeout detect-case? wait-cr? no-hints? no-hostname? long-hostname? - erase-characters kill-characters chdir delay nice extra-options) + erase-characters kill-characters chdir delay nice extra-options + shepherd-requirement) (list (shepherd-service (documentation "Run agetty on a tty.") @@ -934,7 +937,8 @@ (define agetty-shepherd-service ;; service to be done. Also wait for udev essentially so that the tty ;; text is not lost in the middle of kernel messages (see also ;; mingetty-shepherd-service). - (requirement '(user-processes host-name udev)) + (requirement (cons* 'user-processes 'host-name 'udev + shepherd-requirement)) (modules '((ice-9 match) (gnu build linux-boot))) (start -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 25 11:17:53 2022 Received: (at 53763-done) by debbugs.gnu.org; 25 Feb 2022 16:17:53 +0000 Received: from localhost ([127.0.0.1]:53552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNdI0-0003Ex-NG for submit@debbugs.gnu.org; Fri, 25 Feb 2022 11:17:52 -0500 Received: from dd30410.kasserver.com ([85.13.145.193]:56582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNdHp-0003ET-JG; Fri, 25 Feb 2022 11:17:42 -0500 Received: from localhost (84-115-234-128.cable.dynamic.surfer.at [84.115.234.128]) by dd30410.kasserver.com (Postfix) with ESMTPSA id 3A7A811201C6; Fri, 25 Feb 2022 17:17:40 +0100 (CET) Date: Fri, 25 Feb 2022 17:17:38 +0100 From: Danny Milosavljevic To: 53763-done@debbugs.gnu.org, 30464-done@debbugs.gnu.org Subject: Re: [PATCH 0/3] Make console agetty wait for syslogd to start up Message-ID: <20220225171738.296d1a25@scratchpost.org> In-Reply-To: <20220203205243.25095-1-dannym@scratchpost.org> References: <20220203205243.25095-1-dannym@scratchpost.org> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/1muWmh1pgu0nQUdHsEgTpTY"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53763-done 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 (-) --Sig_/1muWmh1pgu0nQUdHsEgTpTY Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Pushed agetty changes as commits ed17082d94bdcdb67713e95d181061d179299aad, = fcb6cab62149fd46d9fe496b91cc019a43774a43, 07c3a439555113bdd0bd416265221063d= 263f44c. --Sig_/1muWmh1pgu0nQUdHsEgTpTY Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAmIZASIACgkQ5xo1VCww uqVyZQf8CSv33uhNWAxCDjWHePLx5Im+XgnaXju4BprxOf4wLkYu3DWdZfo+jFER vXzeofIbnBZFeDEOtCxfFbpuXTi9UwPXWJL/Ba6pz+nrcnU37aQyApVQZgHfytLS 3goV2iLTh6reAX7nZzUyvGclP5HumbJLxguByK0uOLp8XPvJp7tYwt2xjiQNYR2r 9/BedNcOlzjqz0j3WrWxeOj3UYKHboGM2fqQjCcCrnGiTL0ZON3E2/CuB9ts+m+O 1XuM/7NZDRDtHRmYVItIA3tyw4TYSl9vp78qtE35Z6QMNjZREoYk4QOMANX5LCXj LETOE8ajWNQs4vceJHTmZzfLw/To6g== =Ccqf -----END PGP SIGNATURE----- --Sig_/1muWmh1pgu0nQUdHsEgTpTY-- From unknown Thu Jun 19 14:29:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 26 Mar 2022 11:24:04 +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