From owner-freebsd-questions@FreeBSD.ORG Sat Feb 14 07:01:59 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C51A9106564A for ; Sat, 14 Feb 2009 07:01:59 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.224]) by mx1.freebsd.org (Postfix) with ESMTP id 956188FC0A for ; Sat, 14 Feb 2009 07:01:59 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: by rv-out-0506.google.com with SMTP id f6so1023580rvb.43 for ; Fri, 13 Feb 2009 23:01:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=dg5k/eplQmRzKKgcjjZZdbq9TNMPEcr42wgHUIms63E=; b=iaE5O6vtBa5sCICweOc+t8RUziZba7lu1QkVmsHJkOQjPh8hAhefiUTabb1jyKN0+T kjYPU9a/agCe2/GPcVjqL8Q1rpozLR/Q1wyYVkw26dpzqMBqQIWUAdaXnv7dZCN3hVcY YuiCF8lPnub3bt3cN8dJPv9M5rQUopZIjh/gI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=wuVyvRDteEpzIDNci2JVDByEPgSVYqMAqdRIsoClmO1OHlvN8YvQ8Jn3UQBFEGqhFF SEtXYz8Y6MLerhCFESGTj7yDAuUVTzkypN/DKjIb/wPh4+sNg2/UU9zFbjsnHk/e5wbI GzAiLqQg0fi8eE4WW+RxQP8wv1fx9LV5MwvcU= Received: by 10.141.37.8 with SMTP id p8mr1545399rvj.18.1234594919199; Fri, 13 Feb 2009 23:01:59 -0800 (PST) Received: from ?192.168.4.149? (c-68-35-57-46.hsd1.nm.comcast.net [68.35.57.46]) by mx.google.com with ESMTPS id g31sm4766161rvb.7.2009.02.13.23.01.57 (version=SSLv3 cipher=RC4-MD5); Fri, 13 Feb 2009 23:01:58 -0800 (PST) From: Tim Judd To: freebsd@sopwith.solgatos.com In-Reply-To: <200902210632.GAA06072@sopwith.solgatos.com> References: <200902210632.GAA06072@sopwith.solgatos.com> Content-Type: text/plain Date: Sat, 14 Feb 2009 00:01:55 -0700 Message-Id: <1234594915.7816.10.camel@gateway> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: How to interrupt hung boot process? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Feb 2009 07:02:00 -0000 On Fri, 2009-02-20 at 22:32 +0000, Dieter wrote: > Working on updating a amd64 box from 7.0 to 7.1. > A shell script called from rc.local hung. > (Still don't know why, works fine in 7.0, works > fine in 7.1 executed manually once system is up.) > Tried ^C, ^\, ^P and nearly every other key on the > keyboard. They echo, but nothing will interrupt > the hung process. I had to press the reset button. > > Back in the day, typing ^C on the console would > interrupt the boot process and give you a shell > prompt. How do I interrupt the boot process > with FreeBSD? > > Is there a way to have getty start before running > rc.local? If a shell script traps the signals, there is nothing you can do except by calling a SIGKILL to the PID, which requires the system to be in Multi-User Mode.