lib/autorun.cf

Table of Contents

file bodies

control

Prototype: control

Implementation:

body file control
{
      inputs => { @(services_autorun.found_inputs) };
}

agent bundles

autorun

Prototype: autorun

Implementation:

bundle agent autorun
{
  vars:
    services_autorun::
      "bundles" slist => bundlesmatching(".*", "autorun");

      "sorted_bundles"
        slist => sort("bundles", "lex"),
        comment => "Lexicographically sorted bundles for predictable order";

  methods:
    services_autorun::
      "autorun" -> { "CFE-3795" }
        usebundle => $(sorted_bundles),
        action => immediate;

  reports:
    DEBUG|DEBUG_autorun|DEBUG_services_autorun::
      "DEBUG $(this.bundle): found bundle $(sorted_bundles) with tag 'autorun'";
}