From owner-freebsd-questions Mon Nov 5 8:25: 4 2001 Delivered-To: freebsd-questions@freebsd.org Received: from fancy.blackchick.net (biad.net [63.241.25.141]) by hub.freebsd.org (Postfix) with ESMTP id AB1D337B416 for ; Mon, 5 Nov 2001 08:24:55 -0800 (PST) Received: from home ([200.80.197.252]) by fancy.blackchick.net (8.11.4/8.11.0) with ESMTP id fA5GNPe26126 for ; Mon, 5 Nov 2001 08:23:26 -0800 (PST) (envelope-from zuez@smartdigitalinc.com) From: "Guido Fortunati" To: Subject: RE: boot question Date: Mon, 5 Nov 2001 13:25:14 -0300 Message-ID: <000f01c16616$76847370$55000b0a@home> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <008101c16616$bdcc96e0$f900a8c0@norteamericano.cl> Importance: Normal 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 It's not a file, it's a dir. simply cd /usr/local/etc/rc.d and create a file called mysql.sh with the stuff i gave you, read below please. -guido -----Original Message----- From: Webmaster [mailto:webmaster@norteamericano.cl] Sent: Lunes, 05 de Noviembre de 2001 01:27 p.m. To: Guido Fortunati Subject: Re: boot question i dont have /usr/local/etc/rc.d file ----- Original Message ----- From: "Guido Fortunati" To: Sent: Monday, November 05, 2001 1:11 PM Subject: RE: boot question > you should actually have mysql-server.sh in /usr/local/etc/rc.d if you > fetched mysql from the ports. If not, create a file called mysql.sh in > /usr/local/etc.rc.d/ > > #!/bin/sh > > case "$1" in > start) > if [ -x /usr/local/bin/safe_mysqld ]; then > /usr/local/bin/safe_mysqld --user=mysql > > /dev/null & && echo -n ' mysqld' > fi > ;; > stop) > /usr/bin/killall mysqld > /dev/null 2>&1 && echo -n ' > mysqld' > ;; > *) > echo "" > echo "Usage: `basename $0` { start | stop }" > echo "" > exit 64 > ;; > esac > > > of course, replace /usr/local/bin/safe_mysql to wherever safe_mysqld > is. > > -guido > > > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of Webmaster > Sent: Lunes, 05 de Noviembre de 2001 01:09 p.m. > To: freebsd-questions@FreeBSD.ORG > Subject: boot question > > > > I have Freebsd 4.3 release with mysql database. I need the mysql > startup > > utomatically when boot my freebsd. > > > > > > thank!!!! > > > > Marcelo. > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message