def mysql_is_not_running(self): if base.exec_with_root_helper("/usr/bin/pgrep", "mysqld"): LOG.info(_("The mysqld daemon is still running.")) return False else: LOG.info(_("The mysqld daemon is not running.")) return True
def mysql_is_running(self): if base.exec_with_root_helper("/usr/bin/mysqladmin", "ping"): LOG.info(_("The mysqld daemon is up and running.")) return True else: LOG.info(_("The mysqld daemon is not running.")) return False
def mysql_is_not_running(self): if base.exec_with_root_helper("/usr/bin/pgrep", "mysqld"): LOG.info("MySQL is still running.") return False else: LOG.debug("MySQL is not running.") return True
def mysql_is_running(self): if base.exec_with_root_helper("/usr/bin/mysqladmin", "ping"): LOG.debug("MySQL is up and running.") return True else: LOG.debug("MySQL is not running.") return False