From owner-freebsd-questions Fri Aug 17 11:34:55 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 C5A3037B407 for ; Fri, 17 Aug 2001 11:34:52 -0700 (PDT) (envelope-from freymann@scaryg.shacknet.nu) Received: from phantom (staff.eagle.ca [209.167.16.15]) by marlo.eagle.ca (8.11.3/8.11.3) with SMTP id f7HIXGG53596; Fri, 17 Aug 2001 14:33:16 -0400 (EDT) (envelope-from freymann@scaryg.shacknet.nu) Message-ID: <00b901c1274b$716fb020$0f01a8c0@phantom> From: "Gerald T. Freymann" To: Cc: References: <3B7D63D9.C141C3D0@jwebmedia.com> Subject: Re: Start MySQL at system startup Date: Fri, 17 Aug 2001 14:35:50 -0400 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 > 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. Hmmm. Not sure about your installation, but somewhere along the line I'm pretty sure MySql automatically put the startup script on my system. In FreeBSD 4+ this should go in /usr/local/etc/rc.d Be sure to chmod +x the file as well. (my file is called mysql-server.sh) ====start snippet==== #!/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 =======end snippet See if that works! -gf To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message