Added bundle wmde_enable_service (only needed for FreeBSD currently)

This commit is contained in:
Tube 2023-11-13 01:15:30 +01:00
parent 5f9b1b1edc
commit 2d932565b6
1 changed files with 16 additions and 1 deletions

17
lib.cf
View File

@ -103,7 +103,22 @@ body service_method wmde
}
bundle agent wmde_enable_service(bundlename)
{
vars:
freebsd::
# "cha" string => "$(bundlename).service_cfg_name";
"filename" string => "/etc/rc.conf.d/$($(bundlename).service_cfg_name)";
files:
freebsd::
"$(filename)"
create => "true",
perms => m("644"),
content => "$($(bundlename).service_cfg_name)_enable=YES";
reports:
# "FREEBSD: $(filename) $(cha)";
}
bundle agent wmde_service(service_name,start_cond, restart_cond)
{