Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Nov 2001 13:25:14 -0300
From:      "Guido Fortunati" <zuez@smartdigitalinc.com>
To:        <Freebsd-questions@freebsd.org>
Subject:   RE: boot question
Message-ID:  <000f01c16616$76847370$55000b0a@home>
In-Reply-To: <008101c16616$bdcc96e0$f900a8c0@norteamericano.cl>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <zuez@smartdigitalinc.com>
To: <Freebsd-questions@freebsd.org>
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




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