Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Nov 2001 13:11:26 -0300
From:      "Guido Fortunati" <zuez@smartdigitalinc.com>
To:        <Freebsd-questions@freebsd.org>
Subject:   RE: boot question
Message-ID:  <000e01c16614$88941630$55000b0a@home>
In-Reply-To: <005d01c16614$35c88f80$f900a8c0@norteamericano.cl>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000e01c16614$88941630$55000b0a>