]> git.pld-linux.org Git - packages/mysql.git/blobdiff - mysql-ndb.init
8.0 still supports 32bit (and we are back to 8.0 series)
[packages/mysql.git] / mysql-ndb.init
old mode 100644 (file)
new mode 100755 (executable)
index 82f1bc0..0374a48
@@ -51,6 +51,16 @@ stop() {
        fi
 }
 
+condrestart() {
+       if [ -f /var/lock/subsys/mysql-ndb ]; then
+               stop
+               start
+       else
+               msg_not_running "mysql ndbd"
+               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 ndbd
        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.053555 seconds and 4 git commands to generate.