]> git.pld-linux.org Git - packages/mysql.git/blobdiff - mysql.init
- quick workaround to mysql init and start. Need more analysis... Blues? :)
[packages/mysql.git] / mysql.init
index 29f7a123ca0171cbf7303424fd4e537e933e9dae..b4f9cfbd4b36a5844f7419538a606a30c16be43b 100644 (file)
@@ -109,11 +109,13 @@ mysqlgetconfig() {
                config_file=/etc/mysql/$config
        elif [ -f "$clusterdir/mysqld.conf" ]; then
                config_file=$clusterdir/mysqld.conf
+       elif [ -f /etc/mysql/mysqld.conf ]; then
+               config_file=/etc/mysql/mysqld.conf
        fi
 
        MYSQL_CLUSTER_DIR="$clusterdir"; export MYSQL_CLUSTER_DIR
        MYSQL_CONFIG="$config_file"; export MYSQL_CONFIG
-
+nls "mc: " "$config"
        if [ ! -f "$config_file" ]; then
                nls "Error: config file %s not found" "$config_file"
                nls "MySQL can't be run. Did you initialize DB by doing \`$0 init'?"
@@ -575,13 +577,13 @@ case "$action" in
        for mysqldir in $DB_CLUSTERS; do
                mysqlinit "$mysqldir"
        done
+       exit $?
        ;;
   flush-logs)
        for mysqldir in $DB_CLUSTERS; do
            mysqlgetconfig "$mysqldir"
            /usr/bin/mysqladmin --defaults-file="$MYSQL_CONFIG" --socket="$MYSQL_SOCKET" flush-logs
        done
-       exit $?
        ;;
   *)
        msg_usage "$0 {start|stop|init|restart|force-reload|status}"
This page took 0.03547 seconds and 4 git commands to generate.