Re: How to start mysql at boot time?

From: John McGrail (ratfood_at_food.skaterat.net)
Date: 06/15/05


Date: Wed, 15 Jun 2005 09:34:04 -0500

On 2005-06-15, blixel@gmail.com <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?

$ grep rc.conf.local /etc/*
grep: /etc/bgpd.conf: Permission denied
/etc/changelist:/etc/rc.conf.local
grep: /etc/hosts.equiv: Permission denied
grep: /etc/master.passwd: Permission denied
grep: /etc/pf.conf: Permission denied
/etc/rc.conf:local_rcconf="/etc/rc.conf.local"
grep: /etc/spwd.db: Permission denied

$ grep local_rcconf /etc/rc.conf
local_rcconf="/etc/rc.conf.local"
[ -f ${local_rcconf} ] && . ${local_rcconf} # Do not edit this line

I'll leave it as an exercise for the reader to figure out which /etc
scripts load rc.conf

-- 
ratfood@food.skaterat.net
All foods should be removed to reply