From owner-freebsd-questions Mon Nov 5 8:30:47 2001 Delivered-To: freebsd-questions@freebsd.org Received: from marlo.eagle.ca (marlo.eagle.ca [209.167.16.10]) by hub.freebsd.org (Postfix) with ESMTP id 0203237B416 for ; Mon, 5 Nov 2001 08:30:44 -0800 (PST) Received: from phantom (staff.eagle.ca [209.167.16.15]) by marlo.eagle.ca (8.11.3/8.11.3) with SMTP id fA5GQZQ60647; Mon, 5 Nov 2001 11:26:36 -0500 (EST) (envelope-from freymann@scaryg.shacknet.nu) Message-ID: <056501c16617$465b6400$0f01a8c0@phantom> From: "Gerald T. Freymann" To: "Webmaster" , References: <005d01c16614$35c88f80$f900a8c0@norteamericano.cl> Subject: Re: boot question Date: Mon, 5 Nov 2001 11:31:08 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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 > I have Freebsd 4.3 release with mysql database. I need the mysql startup > automatically when boot my freebsd. Look in /usr/local/etc/rc.d There's likely some startup script samples automatically placed in there, assuming you installed Mysql from ports. If not, they give you instructions on how its done at the end of the regular installation. Here's the contents of my mysql-server.sh file: ====start==== #!/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 ===========stop==== Your mileage may vary depending on the paths you selected. -gf To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message