This message generated a parse failure. Raw output follows here. Please use 'back' to navigate. From devnull@lkml.org Sun May 5 03:05:11 2024 Delivery-date: Tue, 20 Jun 2006 13:15:47 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932599AbWFTLPV (ORCPT ); Tue, 20 Jun 2006 07:15:21 -0400 Received: from odyssey.analogic.com ([204.178.40.5]:34824 "EHLO odyssey.analogic.com") by vger.kernel.org with ESMTP id S932598AbWFTLPU convert rfc822-to-8bit (ORCPT ); Tue, 20 Jun 2006 07:15:20 -0400 Received: from chaos.analogic.com ([10.112.50.11]) by phoenix.analogic.com with Microsoft SMTPSVC(6.0.3790.211); Tue, 20 Jun 2006 07:15:18 -0400 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Received: from chaos.analogic.com (localhost [127.0.0.1]) by chaos.analogic.com (8.12.11/8.12.11) with ESMTP id k5KBFIl3007711; Tue, 20 Jun 2006 07:15:18 -0400 Received: (from linux-os@localhost) by chaos.analogic.com (8.12.11/8.12.11/Submit) id k5KBFHXZ007710; Tue, 20 Jun 2006 07:15:17 -0400 X-OriginalArrivalTime: 20 Jun 2006 11:15:18.0820 (UTC) FILETIME=[D03C0640:01C6945A] content-class: urn:content-classes:message Subject: Re: emergency or init=/bin/sh mode and terminal signals Date: Tue, 20 Jun 2006 07:15:16 -0400 Message-Id: In-Reply-To: <20060619220359.GA6218@bouh.residence.ens-lyon.fr> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: emergency or init=/bin/sh mode and terminal signals Thread-Index: AcaUWtBDIwEQ0zzvTlSOzzc27Red/Q== References: <20060618212303.GD4744@bouh.residence.ens-lyon.fr> <20060618213342.GG13255@w.ods.org> <20060619220359.GA6218@bouh.residence.ens-lyon.fr> From: "linux-os \(Dick Johnson\)" To: "Samuel Thibault" Cc: "Willy Tarreau" , Reply-To: "linux-os \(Dick Johnson\)" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 19 Jun 2006, Samuel Thibault wrote: > Hi, > > Willy Tarreau, le Sun 18 Jun 2006 23:33:42 +0200, a =E9crit : >> I too am used to starting with init=3D/bin/sh, but I'm also used to = launch >> ping in the background. However, if getting Ctrl-C working implies a= risk >> of killing init, then I'd rather keep it the old way. > > Maybe you should rather use init=3D/bin/login . If your login program= is > smart enough, it will set a session and thus ^C will work. > > Samuel > - Actually, a rather trivial program can be written, the name of which you define as init on the command-line 'init=3D/bin/myprog'. This program sets up the controlling terminal, then exec()s /bin/bash or whatever shell you want. Since it's exec()ed, the PID remains at 1 so after you have fixed whatever you needed to fix, you can execute `exec /sbin/init auto` and continue with a normal startup. This is certainly cleaner than poking holes in the kernel. Cheers, Dick Johnson Penguin : Linux version 2.6.16.4 on an i686 machine (5592.72 BogoMips). New book: http://www.AbominableFirebug.com/ _ =1A=04 **************************************************************** The information transmitted in this message is confidential and may be = privileged. Any review, retransmission, dissemination, or other use of= this information by persons or entities other than the intended recipi= ent is prohibited. If you are not the intended recipient, please notif= y Analogic Corporation immediately - by replying to this message or by = sending an email to DeliveryErrors@analogic.com - and destroy all copie= s of this information, including any attachments, without reading or di= sclosing them. Thank you. - To unsubscribe from this list: send the line "unsubscribe linux-kernel"= in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/