Added bundle wmde_enable_service (only needed for FreeBSD currently)
This commit is contained in:
parent
5f9b1b1edc
commit
2d932565b6
15
lib.cf
15
lib.cf
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue