Commit bc88c894 authored by Andrea Bignamini's avatar Andrea Bignamini
Browse files

Fix MySQL Daemon in tango-databaseds

The name of the MySQL daemon is in the variable MYSQL_DAEMON.
By default it is set to mysqld, but if your system uses
a different name for the MySQL daemon, change it as you do
for the MYSQL_USER and MYSQL_PASSWORD variables.
parent 0e26207e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ TANGO_GRP="controls"
# Mysql credential to access tango database
MYSQL_USER=controls
MYSQL_PASSWORD=pippo123
MYSQL_DAEMON=mysqld
#---------------------------------------------------------------------------

# Compose Tango host and library path variables
@@ -96,7 +97,7 @@ do_start () {
	chown $TANGO_USR:$TANGO_GRP $TANGO_LOG_DIR
	touch $TANGO_LOG_FILE
	chown $TANGO_USR:$TANGO_GRP $TANGO_LOG_FILE 
	service mysql status | grep 'MySQL running' > /dev/null 2>&1
	service $MYSQL_DAEMON status | grep 'running' > /dev/null 2>&1
	if [ $? != 0 ] ; then
		log_failure_msg "Cannot find MySql, is MySql running?"
		return 1