Compare commits

...

2 Commits

Author SHA1 Message Date
Tube 882a4e7193 Works on CentOS now. 2023-10-25 01:25:10 +02:00
Tube 2c6466b3b1 Foxes for fedora and CentOS 2023-10-25 01:24:36 +02:00
2 changed files with 3 additions and 3 deletions

4
lib.cf
View File

@ -124,9 +124,9 @@ reports:
bundle agent wmde_restart_service(service_name, id) bundle agent wmde_restart_service(service_name, id)
{ {
commands: commands:
debian:: debian|centos|fedora::
"/bin/sh -c " "/bin/sh -c "
args => "'/bin/echo $(id) > /dev/null && /usr/bin/systemctl restart $(service_name)'"; args => "'/bin/echo $(id) > /dev/null && /usr/bin/systemctl restart $(service_name)'";
freebsd:: freebsd::
"/bin/sh -c " "/bin/sh -c "
args => "'/bin/echo $(id) > /dev/null && /usr/sbin/service $(service_name) onerestart'"; args => "'/bin/echo $(id) > /dev/null && /usr/sbin/service $(service_name) onerestart'";

View File

@ -39,7 +39,7 @@ vars:
"default_datadir" string => "/var/lib/mysql"; "default_datadir" string => "/var/lib/mysql";
"mysqld_cmd" string => "/usr/sbin/mysqld"; "mysqld_cmd" string => "/usr/sbin/mysqld";
fedora:: fedora|centos::
"user" string => "mysql"; "user" string => "mysql";
"server_pkgs" slist => {"mariadb-server"}; "server_pkgs" slist => {"mariadb-server"};
"client_pkgs" slist => {"mariadb-client"}; "client_pkgs" slist => {"mariadb-client"};