Example #1
0
 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
Example #2
0
 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
Example #3
0
 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
Example #4
0
 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
Example #5
0
 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
Example #6
0
 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
Example #7
0
 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
Example #8
0
 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