In case the DB_NAME includes a special char, like "-", it is necessary to escape the database name with backticks. The following line should therefore be backslashbacktick${DB_NAME}backslashbacktick (sorry, github formatting is messing with the chars :))
Otherwise, the check fails and dispatcher service shuts down.
|
while ! ${dbcmd} -e "desc $DB_NAME.poller_cluster;" >/dev/null 2>&1; do |