From owner-freebsd-questions Fri Aug 17 13:41: 7 2001 Delivered-To: freebsd-questions@freebsd.org Received: from riffraff.plig.net (riffraff.plig.net [195.40.6.40]) by hub.freebsd.org (Postfix) with ESMTP id CB93E37B408 for ; Fri, 17 Aug 2001 13:40:59 -0700 (PDT) (envelope-from marcs@draenor.org) Received: by riffraff.plig.net (Postfix, from userid 3010) id E765747B10; Fri, 17 Aug 2001 21:40:58 +0100 (BST) Date: Fri, 17 Aug 2001 21:40:58 +0100 From: Marc Silver To: "Patrick J. McNamee" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Start MySQL at system startup Message-ID: <20010817214058.A6969@draenor.org> References: <3B7D63D9.C141C3D0@jwebmedia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from patm@visi.com on Fri, Aug 17, 2001 at 03:32:13PM -0500 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 Hi there, 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. You should be putting scripts in /usr/local/etc/rc.d - scripts in here (for eg. mysql.sh) are called with the 'start' parameter when the system boots up. If you install mysql from the ports tree, you should already have a file in /usr/local/etc/rc.d Cheers, Marc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message