MySQL and Sendmail @system startup HELP

Mac Write

MacWrite.com
I used a package installer (Which prevented UltraBaord Standard Edition form installing, but all other MySQL stuff works on other forums).

I then used the building MySQL/Apache/PHP @ Dev shed to do the MySQL user setup, and also to do the startup scripts.

MySQL works, except that it doesn't startup when the computer starts up.

So what am I misisng?

/Library/StartupItems/MySQL/MySQL

Code:
!/bin/sh

. /etc/rc.common

##
# Start up MySQL server
##

if [ "${MYSQLSERVER:=-NO-}" = "-YES-" ]; then

    ConsoleMessage "Starting MySQL Server"

    /usr/local/share/mysql/safe_mysqld

fi

/Library/StartupItems/MySQL/MySQL.plist (can't remember the exact file name)

Code:
{
  Description     = "MySQL Server";
  Provides        = ("MySQL");
  Requires        = ("Resolver");
  OrderPreference = "None";
  Messages =
  {
    start = "Starting MySQL Server";
    stop  = "Stopping MySQL Server";
  };
}


Also How to I get sendmail to startup properly (Just give me the full instructions. I did it under 10.0 but can't get it to run under 10.1)

Thanks
 
Look at the first line : You forgot the #
This works for me:
Code:
#!/bin/sh

. /etc/rc.common

##
# Start up MySQL server
##
  
if [ "${MYSQLSERVER:=-NO-}" = "-YES-" ]; then

    ConsoleMessage "Starting MySQL Server"

    /usr/local/share/mysql/mysql.server start

fi
The /Library/StartupItems/MySQL/StartupParameters.plist file looks the same as mine, so goood luck!

NuCleuZ
 
It worked!!!!

I didn't do the basic check (even thought I am new to Per/PHP etc).

I always ignore that line I asume it is always right.

Now to get sendmail to startup @startup?
 
Back
Top