зеркало из https://github.com/mozilla/mig.git
bfec483d5c
Adds the ability for persistent modules to read a configuration file that can be used to control their behavior. In some cases, we may want a persistent module to be configurable. A new configuration variable PERSISTCONFIGDIR has been added which indicates a directory the agent will look in for persistent module configs. When the agent starts a persistent module, it will determine if modulename.cfg exists in the config directory; if so the agent will load the config and send it to the newly executed module, which it will read on stdin. The module can then read this configuration, and configure itself as needed before it begins it's primary execution functions. Modules specify the configuration format within the module code itself, so each module that makes use of this can have it's own configuration parameters. |
||
---|---|---|
.. | ||
examplepersist.go | ||
examplepersist_test.go | ||
paramscreator.go |