]> git.pld-linux.org Git - packages/mysql.git/commitdiff
- quick workaround to mysql init and start. Need more analysis... Blues? :)
authorciesiel <ciesiel@pld-linux.org>
Fri, 4 Jun 2004 21:59:45 +0000 (21:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- /etc/rc.d/init.d/mysql generate few warnings and errors but work :)

Changed files:
    mysql.init -> 1.52

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.043906 seconds and 4 git commands to generate.