From owner-freebsd-questions Fri Aug 17 18:12:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-27-141-144.mmcable.com [24.27.141.144]) by hub.freebsd.org (Postfix) with SMTP id B45EA37B409 for ; Fri, 17 Aug 2001 18:12:23 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 2263 invoked by uid 100); 18 Aug 2001 01:12:22 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15229.49398.887096.631116@guru.mired.org> Date: Fri, 17 Aug 2001 20:12:22 -0500 To: Marc Silver Cc: questions@freebsd.org Subject: Re: Start MySQL at system startup In-Reply-To: <132425170@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Marc Silver types: > On Fri, Aug 17, 2001 at 03:32:13PM -0500, Patrick J. McNamee wrote: > > On Fri, 17 Aug 2001, Joseph Koenig wrote: > > > What file do I edit to make MySQL start when my system starts up? I know > > > on my linux box it was /etc/rc.d/rc.local but that doesn't exist on > > > FreeBSD. I looked at /usr/local/etc/rc.d/ and /etc/, but didn't see > > > anything that looked promising (basically, i didn't want to edit the > > > wrong file and break my system). I looked at the mysql web site under > > > the starting and stopping mysql automatically section, but that didn't > > > really help either. Any help would be much appreciated. Thanks, > > I use /etc/rc.local. > That's the wrong file to edit imho. The system rc.* files in /etc/ > shouldn't be used to start local packages. So you think overriding things like syslogd_program in /etc/rc.conf to point at a local package is wrong? You are right about rc.local. It's marked as "rather obsolete" in /etc/rc. The rc.d directories provide a much better mechanism for starting and stopping daemons. It looks like 5.0 will extend paradigm to system packages as well, though it's not certain yet. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message