3 # mysql-ndb This shell script takes care of starting and stopping mysql-ndb.
5 # chkconfig: 2345 80 30
6 # description: mysql-ndb is a mysql NDB engine
10 # Source function library.
11 . /etc/rc.d/init.d/functions
13 # Source networking configuration.
14 . /etc/sysconfig/network
16 # Source oident configureation.
17 if [ -f /etc/sysconfig/mysql-ndb ]; then
18 . /etc/sysconfig/mysql-ndb
21 # Check that networking is up.
22 if is_yes "${NETWORKING}"; then
23 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
24 msg_network_down mysql-ndb
32 # See how we were called.
36 if [ ! -f /var/lock/subsys/mysql-ndb ]; then
37 msg_starting "mysql ndbd"
38 daemon ndbd $MYSQL_NDB_OPT
40 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/mysql-ndb
42 msg_already_running "mysql ndbd"
47 if [ -f /var/lock/subsys/mysql-ndb ]; then
48 msg_stopping "mysql ndbd"
50 rm -f /var/lock/subsys/mysql-ndb >/dev/null 2>&1
52 msg_not_running "mysql ndbd"
65 # msg_reloading "mysql ndbd"
69 msg_usage "$0 {start|stop|restart|force-reload|status}"