I have installed MYSQL from Fink stable on Mac OS X 10.3.4.  I created
an automatic startup script using daemonic enable mysql.

However, this only starts up MYSQL.

I notice that Linux Debian has a stop function in their version (see
below).

Can anybody point me to the magic phrases need to gracefully shutdown
mysql under Mac OS X.

Thank you.

mark





Debian version of stop
 
 
  'stop')
        # * As a passwordless mysqladmin (e.g. via ~/.my.cnf) must be
possible
        # at least for cron, we can rely on it here, too. (although we
have 
        # to specify it explicit as e.g. sudo environments points to the
normal
        # users home and not /root)
        echo -n "Stopping MySQL database server: mysqld"        
        if is_mysqld_alive; then
          set +e
          $MYADMIN shutdown
          r=$?
          set -e
          if [ "$r" -ne 0 ]; then
            echo "...failed"
            echo -n "Killing MySQL database server by signal: mysqld"
            for i in 1 2 3 4 5 6; do
              killall -15 mysqld
              sleep 1
              killall -9 mysqld
              if is_mysqld_alive; then break; fi
            done
          fi
        fi



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
_______________________________________________
Fink-beginners mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to