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
33 if [ ! -f /var/lock/subsys/mysql-ndb-cpc ]; then
34 msg_starting "mysql ndb_cpcd"
35 daemon ndb_cpcd $MYSQL_NDB_CPC_OPT
37 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/mysql-ndb-cpc
39 msg_already_running "mysql ndb_cpcd"
45 if [ -f /var/lock/subsys/mysql-ndb-cpc ]; then
46 msg_stopping "mysql ndb_cpcd"
48 rm -f /var/lock/subsys/mysql-ndb-cpc >/dev/null 2>&1
50 msg_not_running "mysql ndb_cpcd"
55 if [ -f /var/lock/subsys/mysql-ndb-cpc ]; then
59 msg_not_running "mysql ndb_cpcd"
65 # See how we were called.
88 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"