3 # mysql-ndb-cpc This shell script takes care of starting and stopping mysql-ndb-cpc.
5 # chkconfig: 2345 80 30
6 # description: mysql-ndb-cpc 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-cpc ]; then
18 . /etc/sysconfig/mysql-ndb-cpc
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-cpc
32 # See how we were called.
36 if [ ! -f /var/lock/subsys/mysql-ndb-cpc ]; then
37 msg_starting "mysql ndb_cpcd"
38 daemon ndb_cpcd $MYSQL_NDB_CPC_OPT
40 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/mysql-ndb-cpc
42 msg_already_running "mysql ndb_cpcd"
47 if [ -f /var/lock/subsys/mysql-ndb-cpc ]; then
48 msg_stopping "mysql ndb_cpcd"
50 rm -f /var/lock/subsys/mysql-ndb-cpc >/dev/null 2>&1
52 msg_not_running "mysql ndb_cpcd"
65 # msg_reloading "mysql ndb_cpcd"
66 # killproc ndb_cpcd -HUP
69 msg_usage "$0 {start|stop|restart|force-reload|status}"