[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Quick mySQL question?
This is, what I did:
I added mysqld=YES in /etc/rc.conf.local and the next lines in /etc/rc.local.
# Mysql server
if [ X"${mysqld}" == X"YES" -a -x /usr/local/bin/safe_mysqld ]; then
echo -n " mysql"; /usr/local/share/mysql/mysql.server start &&
sleep 1
mkdir -p /var/spool/postfix/var/run/mysql &&
mkdir -p /var/www/var/run/mysql &&
ln -f /var/run/mysql/mysql.sock
/var/spool/postfix/var/run/mysql/mysql.sock
ln -f /var/run/mysql/mysql.sock /var/www/var/run/mysql/mysql.sock
fi
The created directories and links to postfix (/var/spool/postfix....) and
apache (/var/www......) are because this service are runing as chroot.
I hope this help you.
On Thursday 05 June 2003 13:42, L. V. Lammert wrote:
> What is the proper entry in rc.local to start mysql (installing the package
> did not add one)? I am now using:
>
> /usr/local/bin/safe_mysqld --user=mysql # Start mysql
>
> .. but it does not detach from the session (locking it). I was going to add
> '&', but would that not kill the session at the end of processing rc.local?
>
> It's not a BIG deal, as this machine hasn't been rebooted for over a month
> (since 3.3 install), .. but I'd like to have it correct, just in case.
>
> TIA,
>
> Lee
>
> ============================================
> Leland V. Lammert lvl@omnitec.net
> Chief Scientist Omnitec Corporation
> Network/Internet Consultants www.omnitec.net
> ============================================