Date: Tue, 19 Apr 2005 10:38:16 -0500 From: Paul Schmehl <pauls@utdallas.edu> To: Joshua Lewis <joshua.lewis@prideindesign.com>, freebsd-questions@freebsd.org Subject: Re: Startup scripts question Message-ID: <DFA51FA52540E3DAEEF77281@utd49554.utdallas.edu> In-Reply-To: <BE89C391.41F%joshua.lewis@prideindesign.com> References: <BE89C391.41F%joshua.lewis@prideindesign.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--On Monday, April 18, 2005 08:05:37 PM -0700 Joshua Lewis=20 <joshua.lewis@prideindesign.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DFA51FA52540E3DAEEF77281>