From owner-freebsd-questions@FreeBSD.ORG Tue Apr 19 15:38:17 2005 Return-Path: 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 41C5D16A4CE for ; Tue, 19 Apr 2005 15:38:17 +0000 (GMT) Received: from smtp1.utdallas.edu (smtp1.utdallas.edu [129.110.10.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id E259443D62 for ; Tue, 19 Apr 2005 15:38:16 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from utd49554 (utd49554.utdallas.edu [129.110.3.85]) by smtp1.utdallas.edu (Postfix) with ESMTP id 8CC36388FA2; Tue, 19 Apr 2005 10:38:16 -0500 (CDT) Date: Tue, 19 Apr 2005 10:38:16 -0500 From: Paul Schmehl To: Joshua Lewis , freebsd-questions@freebsd.org Message-ID: In-Reply-To: References: X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Re: Startup scripts question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Paul Schmehl List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2005 15:38:17 -0000 --On Monday, April 18, 2005 08:05:37 PM -0700 Joshua Lewis=20 wrote: > How do startup scripts work? > > I added: > > mysql_enable=3D=B2YES=B2 > > But I don=B9t think it is working. I had rebooted my system the other day > and my mail server stopped working (postfix reading from mysql tables) > and I tried looking at my running processes: > > ps =ADax |grep sql > Did you look in /var/log/messages for any errors? Did you look in=20 dmesg.boot? > and nothing was returned. So I guessed mysql was not running. > > I tried: > > mysql start > That won't work. Look at the startup script and you'll see why. > and I got a socket error. I usually get this error when SQL was not > started properly. So I ran > > /usr/local/etc/rc.d/mysql-server.sh start > > And low and behold it was all working. Sounds like something is preventing it from starting properly during the=20 boot process. So how do startup scripts work. > Did I add the wrong value to my /etc/rc.conf file? > > Or did I miss something somewhere? > > Does the entry in /etc/rc.conf correlate to the startup script. Should I > change my rc.conf file to read > > mysql-server_enable=3D=B2YES=B2 > No. mysql_enable=3D"YES" is the correct value. Paul Schmehl (pauls@utdallas.edu) Adjunct Information Security Officer The University of Texas at Dallas AVIEN Founding Member http://www.utdallas.edu