Re: How to start mysql at boot time?
From: Shane Almeida (almeida.spam.is.evil_at_spam.is.evil.mindless.com)
Date: 06/15/05
- Previous message: blixel_at_gmail.com: "Re: tar: Link name too long for ustar"
- In reply to: blixel_at_gmail.com: "Re: How to start mysql at boot time?"
- Next in thread: Dave Uhring: "Re: How to start mysql at boot time?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 15 Jun 2005 11:38:25 -0500
On 15 Jun 2005 07:10:52 -0700, blixel@gmail.com wrote:
> Thanks. That seems to work - though I don't entirely understand it.
>
> I understand that the first line is checking to make sure mysql.server
> is executable and checking to make sure that mysql=YES in
> /etc/rc.conf.local ... but how does it "know" what the value of mysql
> is? The /etc/rc.local script doesn't seem to import /etc/rc.conf.local
> ... I can only assume the values are read into memory during the boot
> process and are stored globally until the boot process is finished?
/etc/rc reads /etc/rc.conf which then reads /etc.rc.conf.local. After
finishing the default stuff, /etc/rc runs /etc/rc.local. Because rc runs
rc.local, rc.local inherits the same values in rc.conf and rc.conf.local.
That's how mysql=YES gets to rc.local.
> The second line is also unfamiliar to me. It looks like it's running
> the script to start the mysql server and passing the user mysqld to the
> script so that the script will run as that user. However, I don't have
> a mysqld user in my /etc/passwd. There IS a _mysql user in
> /etc/passwd. And when I run "ps aux | grep mysql", I can see that the
> mysql server is running as _mysql (not as mysqld) - weird. I guess
> echo -n " mysqld" is a parameter other than the user to run as.
The echo just prints " mysqld" to the console during bootup. Next time
you boot, look for something like "starting local services: mysql." The
echo -n is what puts the string "mysql" there. The echo and the
mysql.server start are separated by a ';' which means they are two
independent commands.
- Previous message: blixel_at_gmail.com: "Re: tar: Link name too long for ustar"
- In reply to: blixel_at_gmail.com: "Re: How to start mysql at boot time?"
- Next in thread: Dave Uhring: "Re: How to start mysql at boot time?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|