Fix mariadb stack status
This commit is contained in:
@@ -78,8 +78,8 @@ class WOStackStatusController(CementBaseController):
|
|||||||
if pargs.mysql:
|
if pargs.mysql:
|
||||||
if ((WOVar.wo_mysql_host == "localhost") or
|
if ((WOVar.wo_mysql_host == "localhost") or
|
||||||
(WOVar.wo_mysql_host == "127.0.0.1")):
|
(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']
|
services = services + ['mariadb']
|
||||||
else:
|
else:
|
||||||
Log.info(self, "MySQL is not installed")
|
Log.info(self, "MySQL is not installed")
|
||||||
else:
|
else:
|
||||||
@@ -176,8 +176,8 @@ class WOStackStatusController(CementBaseController):
|
|||||||
if pargs.mysql:
|
if pargs.mysql:
|
||||||
if ((WOVar.wo_mysql_host == "localhost") or
|
if ((WOVar.wo_mysql_host == "localhost") or
|
||||||
(WOVar.wo_mysql_host == "127.0.0.1")):
|
(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']
|
services = services + ['mariadb']
|
||||||
else:
|
else:
|
||||||
Log.info(self, "MySQL is not installed")
|
Log.info(self, "MySQL is not installed")
|
||||||
else:
|
else:
|
||||||
@@ -275,8 +275,8 @@ class WOStackStatusController(CementBaseController):
|
|||||||
if pargs.mysql:
|
if pargs.mysql:
|
||||||
if ((WOVar.wo_mysql_host == "localhost") or
|
if ((WOVar.wo_mysql_host == "localhost") or
|
||||||
(WOVar.wo_mysql_host == "127.0.0.1")):
|
(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']
|
services = services + ['mariadb']
|
||||||
else:
|
else:
|
||||||
Log.info(self, "MySQL is not installed")
|
Log.info(self, "MySQL is not installed")
|
||||||
else:
|
else:
|
||||||
@@ -377,8 +377,8 @@ class WOStackStatusController(CementBaseController):
|
|||||||
if pargs.mysql:
|
if pargs.mysql:
|
||||||
if ((WOVar.wo_mysql_host == "localhost") or
|
if ((WOVar.wo_mysql_host == "localhost") or
|
||||||
(WOVar.wo_mysql_host == "127.0.0.1")):
|
(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']
|
services = services + ['mariadb']
|
||||||
else:
|
else:
|
||||||
Log.info(self, "MySQL is not installed")
|
Log.info(self, "MySQL is not installed")
|
||||||
else:
|
else:
|
||||||
@@ -487,7 +487,7 @@ class WOStackStatusController(CementBaseController):
|
|||||||
if pargs.mysql:
|
if pargs.mysql:
|
||||||
if ((WOVar.wo_mysql_host == "localhost") or
|
if ((WOVar.wo_mysql_host == "localhost") or
|
||||||
(WOVar.wo_mysql_host == "127.0.0.1")):
|
(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']
|
services = services + ['mysql']
|
||||||
else:
|
else:
|
||||||
Log.info(self, "MySQL is not installed")
|
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
|
# 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.
|
# the first time they are touched. On error, make copy and try a repair.
|
||||||
myisam_recover_options = BACKUP
|
myisam_recover_options = BACKUP
|
||||||
key_buffer_size = 128M
|
key_buffer_size = 16M
|
||||||
open-files-limit = 500000
|
open-files-limit = 500000
|
||||||
table_open_cache = 16000
|
table_open_cache = 16000
|
||||||
myisam_sort_buffer_size = 512M
|
myisam_sort_buffer_size = 128M
|
||||||
concurrent_insert = 2
|
concurrent_insert = 2
|
||||||
read_buffer_size = 2M
|
read_buffer_size = 2M
|
||||||
read_rnd_buffer_size = 1M
|
read_rnd_buffer_size = 1M
|
||||||
|
|||||||
Reference in New Issue
Block a user