diff --git a/lib.cf b/lib.cf index 3b361a5..dafdf3f 100644 --- a/lib.cf +++ b/lib.cf @@ -124,9 +124,9 @@ reports: bundle agent wmde_restart_service(service_name, id) { commands: - debian:: + debian|centos|fedora:: "/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:: "/bin/sh -c " args => "'/bin/echo $(id) > /dev/null && /usr/sbin/service $(service_name) onerestart'";