Hello guys,
I have a promise bundle which controls two daemons. They are described
as follows:
vars:
"services" slist => { "daemon", "another_daemon" };
methods:
"$(services)"
usebundle => start_service("$(services)"),
comment => "Make sure mpopd components are running";
"start.$(services)"
usebundle => system_startup("$(services)"),
comment => "Make sure sshd is added to the
system startup";
trying to run cf-agent upon them, I receive the following message:
cf3 -> !! Duplicate selection of value for variable "start_cmd" in
scope start_service
cf3 -> Rule from /var/cfengine/inputs/test.cf at/before line 111
cf3 -> !! Duplicate selection of value for variable "status" in
scope system_startup
cf3 -> Rule from /var/cfengine/inputs/test.cf at/before line 111
e.g. the method receives slist. Is it possible to recall method for
any instance from the slist?
--
SY, Seva Gluschenko
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine