]> git.pld-linux.org Git - packages/mysql.git/blobdiff - mysql-ndb-cpc.init
- ignore-builtin-innodb is deprecated
[packages/mysql.git] / mysql-ndb-cpc.init
index 9d5d971e69eb8dce574ac4c0c60825e61be721e1..ad159b36cd10dbc6517b3cbacc7d58933e485d30 100644 (file)
@@ -51,6 +51,16 @@ stop() {
        fi
 }
 
+condrestart() {
+       if [ -f /var/lock/subsys/mysql-ndb-cpc ]; then
+               stop
+               start
+       else
+               msg_not_running "mysql ndb_cpcd"
+               RETVAL=$1
+       fi
+}
+
 RETVAL=0
 # See how we were called.
 case "$1" in
@@ -60,16 +70,22 @@ case "$1" in
   stop)
        stop
        ;;
-  restart|force-reload)
+  restart)
        stop
        start
        ;;
+  try-restart)
+       condrestart 0
+       ;;
+  force-reload)
+       condrestart 7
+       ;;
   status)
        status ndb_cpcd
        exit $?
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|force-reload|status}"
+       msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"
        exit 3
 esac
 
This page took 0.02229 seconds and 4 git commands to generate.