David,
The community library has functions for handling switching services on
and off. Here's an example.
vars:
"enabled_services" slist => { "sendmail", "snmpd", "sshd",
"syslog", "sysstat", "xinetd", "ypbind" };
methods:
"any" usebundle => enable_xinetd("$(enabled_services)");
It's always a good idea to review the cfengine_stdlib.cf function or
method directly to fully understand what it does.
Frans
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine