From 4b294ccdd3118abcf5799d91bc97a0b630b8a4a1 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 13 Jul 2004 22:11:33 +0200 Subject: - Fixed a previous modification to the MySQL Startup Item for Mac OS X: the name of the startup script itself must match the name of the subdirectory it's located in. Changed MySQL->MySQLCOM in the Do-pkg script and renamed the file in BK. (Thanks to Bryan McCormack for reporting this) Build-tools/Do-pkg: - renamed script from MySQL to MySQLCOM to match the name of the directory it's installed in support-files/MacOSX/MySQLCOM: - Fixed the file and directory name to match the actual location --- support-files/MacOSX/MySQL | 53 ------------------------------------------- support-files/MacOSX/MySQLCOM | 53 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 53 deletions(-) delete mode 100755 support-files/MacOSX/MySQL create mode 100755 support-files/MacOSX/MySQLCOM (limited to 'support-files/MacOSX') diff --git a/support-files/MacOSX/MySQL b/support-files/MacOSX/MySQL deleted file mode 100755 index f6579700384..00000000000 --- a/support-files/MacOSX/MySQL +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh -# -# /Library/StartupItems/MySQL/MySQL -# -# A script to automatically start up MySQL on system bootup -# for Mac OS X. This is actually just a wrapper script around -# the standard mysql.server init script, which is included in -# the binary distribution. -# -# (c) 2003 MySQL AB -# Written by Lenz Grimmer -# - -# Suppress the annoying "$1: unbound variable" error when no option -# was given -if [ -z $1 ] ; then - echo "Usage: $0 [start|stop|restart] " - exit 1 -fi - -# Source the common setup functions for startup scripts -test -r /etc/rc.common || exit 1 -. /etc/rc.common - -# The path to the mysql.server init script. The official MySQL -# Mac OS X packages are being installed into /usr/local/mysql. -SCRIPT="/usr/local/mysql/support-files/mysql.server" - -StartService () -{ - if [ "${MYSQLCOM:=-NO-}" = "-YES-" ] ; then - ConsoleMessage "Starting MySQL database server" - $SCRIPT start > /dev/null 2>&1 - fi -} - -StopService () -{ - ConsoleMessage "Stopping MySQL database server" - $SCRIPT stop > /dev/null 2>&1 -} - -RestartService () -{ - ConsoleMessage "Restarting MySQL database server" - $SCRIPT restart > /dev/null 2>&1 -} - -if test -x $SCRIPT ; then - RunService "$1" -else - ConsoleMessage "Could not find MySQL startup script!" -fi diff --git a/support-files/MacOSX/MySQLCOM b/support-files/MacOSX/MySQLCOM new file mode 100755 index 00000000000..9be5edb56f7 --- /dev/null +++ b/support-files/MacOSX/MySQLCOM @@ -0,0 +1,53 @@ +#!/bin/sh +# +# /Library/StartupItems/MySQLCOM/MySQLCOM +# +# A script to automatically start up MySQL on system bootup +# for Mac OS X. This is actually just a wrapper script around +# the standard mysql.server init script, which is included in +# the binary distribution. +# +# (c) 2003 MySQL AB +# Written by Lenz Grimmer +# + +# Suppress the annoying "$1: unbound variable" error when no option +# was given +if [ -z $1 ] ; then + echo "Usage: $0 [start|stop|restart] " + exit 1 +fi + +# Source the common setup functions for startup scripts +test -r /etc/rc.common || exit 1 +. /etc/rc.common + +# The path to the mysql.server init script. The official MySQL +# Mac OS X packages are being installed into /usr/local/mysql. +SCRIPT="/usr/local/mysql/support-files/mysql.server" + +StartService () +{ + if [ "${MYSQLCOM:=-NO-}" = "-YES-" ] ; then + ConsoleMessage "Starting MySQL database server" + $SCRIPT start > /dev/null 2>&1 + fi +} + +StopService () +{ + ConsoleMessage "Stopping MySQL database server" + $SCRIPT stop > /dev/null 2>&1 +} + +RestartService () +{ + ConsoleMessage "Restarting MySQL database server" + $SCRIPT restart > /dev/null 2>&1 +} + +if test -x $SCRIPT ; then + RunService "$1" +else + ConsoleMessage "Could not find MySQL startup script!" +fi -- cgit v1.2.1