Go to main content

Developing System Services in Oracle® Solaris 11.4

Exit Print View

Updated: November 2020
 
 
Chapter 6

Using a Stencil to Create a Configuration File

If your application cannot use libscf library interfaces to read properties, you can use a stencil to create a configuration file. A stencil service creates configuration files by using a stencil file and property values defined in the stencil service. A stencil file contains a structural definition of a configuration file that is required by an application that is not integrated with SMF but stores its configuration in SMF. Stencil services enable you to take advantage of SMF configuration management with no change to the existing application.

If an application requires multiple configuration files, specify each configuration file in a separate property group.

Configuration files are generated immediately before the service instance start or refresh method is executed. If you update the stenciled property values, refresh or restart the service to incorporate the changes into the configuration file before the application starts and reads the configuration file.

This chapter describes:

  • How to create a stencil service

  • How to create a stencil service to generate multiple configuration files

  • The Puppet stencil service in Oracle Solaris

  • The WebUI stencil service in Oracle Solaris