It was much more complex than it should be. I had to change the mysql.server script a whole lot until it worked...
Below is whats working for
#!/bin/sh
PATH=/sbin:/usr/sbin:/bin:/usr/bin:$basedir/bin
export PATH
basedir=/usr/local/mysql5
datadir=/home/mysql5
bindir=/usr/local/mysql5/bin
pid_file=/home/mysql5/goofy.pid
server_pid_file=/home/mysql5/goofy.pid
user=mysql5
#
# Use LSB init script functions for printing messages, if possible
#
lsb_functions="/lib/lsb/init-functions"
if test -f $lsb_functions ; then
source $lsb_functions
else
log_success_msg()
{
echo " SUCCESS! $@"
}
log_failure_msg()
{
echo " ERROR! $@"
}
fi
wait_for_pid () {
i=0
while test $i -lt 35 ; do
sleep 1
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --