Foxes for fedora and CentOS

This commit is contained in:
Tube 2023-10-25 01:24:36 +02:00
parent d761d054f4
commit 2c6466b3b1
1 changed files with 2 additions and 2 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'";