From owner-freebsd-questions@FreeBSD.ORG Sat Mar 4 19:19:20 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B37016A420 for ; Sat, 4 Mar 2006 19:19:20 +0000 (GMT) (envelope-from amitabhkant@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5DF0E43D45 for ; Sat, 4 Mar 2006 19:19:19 +0000 (GMT) (envelope-from amitabhkant@gmail.com) Received: by nproxy.gmail.com with SMTP id a27so621292nfc for ; Sat, 04 Mar 2006 11:19:18 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JepSL+oObjquU+kVCXTu9L8exqoFZaXOWQNgEckp5wMZ389S2ZhttpyZsUp3dWkEMFcx/Kns7bb3d01de/tsoy1zXYxaa/07hDV6TrIfKP+JC68AE/Gg67p7GZK18/mv02qkAHaVEslVWIJOYZ+wMsDN6nhahY81j8lCzaYqSpY= Received: by 10.49.87.6 with SMTP id p6mr1656254nfl; Sat, 04 Mar 2006 11:19:18 -0800 (PST) Received: by 10.49.11.9 with HTTP; Sat, 4 Mar 2006 11:19:18 -0800 (PST) Message-ID: <84b68b3d0603041119g73eb3b20mb618ea7753ad2850@mail.gmail.com> Date: Sun, 5 Mar 2006 00:49:18 +0530 From: "Amitabh Kant" To: freebsd-questions@freebsd.org In-Reply-To: <84b68b3d0603041059n4c9e47a6kd0e8c61e9d3c16f8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <84b68b3d0603041059n4c9e47a6kd0e8c61e9d3c16f8@mail.gmail.com> Subject: Re: Problems with mysqld running from /etc/rc.local in FreeBSD6 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, 04 Mar 2006 19:19:20 -0000 I solved this problem by booting into the Fixit mode using the installation Media (in my case the first CD of FreeBSD 6). Once inside the Fixit mode, I mounted the root partition and changed the contents of the file. Seems pretty easy on hindsight, although I don't knwo if it has broken my software Raid1 setup. Thanks Amitabh On 3/5/06, Amitabh Kant wrote: > Hi > > Please excuse me for my ignorance, as I am fairly new to FreeBSD. I > have a FreeBSD 6.0 running on a test system. I successfully installed > mysql5 server from the ports collection. Now to make it start during > the boot process, I created a file "/etc/rc.local" and entered the > complete path of the mysqld_safe (/usr/bin/mysqld_safe if I am not > wrong) in the same file. > > I later realised that this is not the correct way to start mysql > daemon, but the problem is that I did not make any changes to the > /etc/rc.local file. Now when I reboot the machine, the boot process > simply stops after starting mysqld daemon. It will not go away even > after trying Ctrl-C or Ctrl-Q or Ctrl-Break. I tried sshing into the > machine from another system, but it seems that sshd is not up yet, so > I can't just login and change the /etc/rc.local file. It is pinging > the test machine without problems, so atleast the network interface is > up. How do I go about wither bypassing the commands written in the > "/etc/rc.local" file or editing "/etc/rc.local" file to comment out > the offending mysqld line. > > If it is of any significance, I am running a software Raid1 setup on > my test system. > > Thanks for your help > > Amitabh >