View Single Post
  #3   (View Single Post)  
Old 8th August 2010
benben159 benben159 is offline
New User
 
Join Date: Aug 2010
Posts: 2
Default

Quote:
Originally Posted by phill View Post
I think the condition X"${mysql}" == X"YES" is only true if you also created a conf file containing mysql=YES. Just like rc works with rc.conf.

In my rc.local I only use the condition -x /usr/local/bin/mysqld_safe so:
if [ -x /usr/local/bin/mysqld_safe ] ; then
su -c _mysql root -c `/usr/local/bin/mysqld_safe &` > /dev/null & echo -
n “ mysqld”
fi
i've done it before, by creating a file called rc.conf.local in /etc with
Code:
mysql=YES
in it. but it still won't run
Reply With Quote