]> git.pld-linux.org Git - packages/mysql.git/commitdiff
- sync msg_usage order and add all actions to list
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 8 Apr 2010 20:16:00 +0000 (20:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mysql.init -> 1.140

mysql.init

index 164ef14fe80b1b8000bf4c795872f6b5e73022a9..231ac51fdc392891eb2059df8e5c1b29a15d8620 100644 (file)
@@ -551,10 +551,10 @@ condrestart() {
 RETVAL=0
 case "$action" in
   start)
-       start
+       start
        ;;
   stop)
-       stop
+       stop
        ;;
   restart)
        stop
@@ -566,6 +566,21 @@ case "$action" in
   force-reload)
        condrestart 7
        ;;
+  init)
+       for mysqldir in $DB_CLUSTERS; do
+               mysqlinit "$mysqldir"
+       done
+       exit $?
+       ;;
+  flush-logs)
+       for mysqldir in $DB_CLUSTERS; do
+           mysqlgetconfig "$mysqldir"
+               # just if mysqld is really running
+               if /usr/bin/mysqladmin --defaults-file="$MYSQL_CONFIG" --socket="$MYSQL_SOCKET" ping >/dev/null 2>&1; then
+                       /usr/bin/mysqladmin --defaults-file="$MYSQL_CONFIG" --socket="$MYSQL_SOCKET" flush-logs
+               fi
+       done
+       ;;
   status)
        for mysqldir in $DB_CLUSTERS; do
                mysqlstatus "$mysqldir"
@@ -616,23 +631,8 @@ case "$action" in
                done
        fi
        ;;
-  init)
-       for mysqldir in $DB_CLUSTERS; do
-               mysqlinit "$mysqldir"
-       done
-       exit $?
-       ;;
-  flush-logs)
-       for mysqldir in $DB_CLUSTERS; do
-           mysqlgetconfig "$mysqldir"
-               # just if mysqld is really running
-               if /usr/bin/mysqladmin --defaults-file="$MYSQL_CONFIG" --socket="$MYSQL_SOCKET" ping >/dev/null 2>&1; then
-                       /usr/bin/mysqladmin --defaults-file="$MYSQL_CONFIG" --socket="$MYSQL_SOCKET" flush-logs
-               fi
-       done
-       ;;
   *)
-       msg_usage "$0 {start|stop|init|restart|try-restart|force-reload|status}"
+       msg_usage "$0 {start|stop|restart|try-restart|force-reload|init|flush-logs|status}"
        exit 3
 esac
 
This page took 0.329091 seconds and 4 git commands to generate.