Fix mariadb stack status
This commit is contained in:
@@ -78,8 +78,8 @@ class WOStackStatusController(CementBaseController):
|
||||
if pargs.mysql:
|
||||
if ((WOVar.wo_mysql_host == "localhost") or
|
||||
(WOVar.wo_mysql_host == "127.0.0.1")):
|
||||
if os.path.exists('/etc/systemd/system/mysql.service'):
|
||||
services = services + ['mysql']
|
||||
if os.path.exists('/lib/systemd/system/mariadb.service'):
|
||||
services = services + ['mariadb']
|
||||
else:
|
||||
Log.info(self, "MySQL is not installed")
|
||||
else:
|
||||
@@ -176,8 +176,8 @@ class WOStackStatusController(CementBaseController):
|
||||
if pargs.mysql:
|
||||
if ((WOVar.wo_mysql_host == "localhost") or
|
||||
(WOVar.wo_mysql_host == "127.0.0.1")):
|
||||
if os.path.exists('/etc/systemd/system/mysql.service'):
|
||||
services = services + ['mysql']
|
||||
if os.path.exists('/lib/systemd/system/mariadb.service'):
|
||||
services = services + ['mariadb']
|
||||
else:
|
||||
Log.info(self, "MySQL is not installed")
|
||||
else:
|
||||
@@ -275,8 +275,8 @@ class WOStackStatusController(CementBaseController):
|
||||
if pargs.mysql:
|
||||
if ((WOVar.wo_mysql_host == "localhost") or
|
||||
(WOVar.wo_mysql_host == "127.0.0.1")):
|
||||
if os.path.exists('/etc/systemd/system/mysql.service'):
|
||||
services = services + ['mysql']
|
||||
if os.path.exists('/lib/systemd/system/mariadb.service'):
|
||||
services = services + ['mariadb']
|
||||
else:
|
||||
Log.info(self, "MySQL is not installed")
|
||||
else:
|
||||
@@ -377,8 +377,8 @@ class WOStackStatusController(CementBaseController):
|
||||
if pargs.mysql:
|
||||
if ((WOVar.wo_mysql_host == "localhost") or
|
||||
(WOVar.wo_mysql_host == "127.0.0.1")):
|
||||
if os.path.exists('/etc/systemd/system/mysql.service'):
|
||||
services = services + ['mysql']
|
||||
if os.path.exists('/lib/systemd/system/mariadb.service'):
|
||||
services = services + ['mariadb']
|
||||
else:
|
||||
Log.info(self, "MySQL is not installed")
|
||||
else:
|
||||
@@ -487,7 +487,7 @@ class WOStackStatusController(CementBaseController):
|
||||
if pargs.mysql:
|
||||
if ((WOVar.wo_mysql_host == "localhost") or
|
||||
(WOVar.wo_mysql_host == "127.0.0.1")):
|
||||
if os.path.exists('/etc/systemd/system/mysql.service'):
|
||||
if os.path.exists('/lib/systemd/system/mariadb.service'):
|
||||
services = services + ['mysql']
|
||||
else:
|
||||
Log.info(self, "MySQL is not installed")
|
||||
|
||||
@@ -64,10 +64,10 @@ max_heap_table_size = {{tmp_table_size}}M
|
||||
# This replaces the startup script and checks MyISAM tables if needed
|
||||
# the first time they are touched. On error, make copy and try a repair.
|
||||
myisam_recover_options = BACKUP
|
||||
key_buffer_size = 128M
|
||||
key_buffer_size = 16M
|
||||
open-files-limit = 500000
|
||||
table_open_cache = 16000
|
||||
myisam_sort_buffer_size = 512M
|
||||
myisam_sort_buffer_size = 128M
|
||||
concurrent_insert = 2
|
||||
read_buffer_size = 2M
|
||||
read_rnd_buffer_size = 1M
|
||||
|
||||
Reference in New Issue
Block a user