From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emKih-00081i-UE for guix-patches@gnu.org; Thu, 15 Feb 2018 09:41:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emKic-0004QP-V7 for guix-patches@gnu.org; Thu, 15 Feb 2018 09:41:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:35939) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1emKic-0004QH-Qw for guix-patches@gnu.org; Thu, 15 Feb 2018 09:41:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1emKic-0006gp-ES for guix-patches@gnu.org; Thu, 15 Feb 2018 09:41:02 -0500 Subject: [bug#30464] [PATCH 1/2] services: Add console-agetty-service. Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20180215114256.551-1-dannym@scratchpost.org> <20180215114742.663-1-dannym@scratchpost.org> Date: Thu, 15 Feb 2018 15:40:14 +0100 In-Reply-To: <20180215114742.663-1-dannym@scratchpost.org> (Danny Milosavljevic's message of "Thu, 15 Feb 2018 12:47:41 +0100") Message-ID: <87r2pm8gfl.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Danny Milosavljevic Cc: 30464@debbugs.gnu.org Hello, Danny Milosavljevic skribis: > * gnu/services/base.scm (): Make tty default to #f. > (console-agetty-shepherd-service): New variable. > (console-agetty-service-type): New variable. > (console-agetty-service): New variable. > (%base-services): Replace agetty-service instance by console-agetty-servi= ce > instance. Could you explain the rationale? The only difference is that this shepherd service depends on =E2=80=98syslo= gd=E2=80=99 whereas the current agetty service doesn=E2=80=99t, right? > +(define* (console-agetty-service config) > + "Return a service to run agetty according to @var{config}, which speci= fies > +the tty to run, defaulting to the Linux console." > + (service console-agetty-service-type config)) In general we don=E2=80=99t provide such procedures any more and instead ex= pose service types and configs directly. Thanks, Ludo=E2=80=99.