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
|