Go to main content

Managing System Services in Oracle® Solaris 11.4

Exit Print View

Updated: Febuary 2019
 
 

How to Create a Profile by Using svccfg

  1. Create the profile.

    The svccfg extract command displays a service profile for the specified service or instance. To extract values from specific layers, use the -l option. The -l option argument can be a layer name or a comma-separated list of layer names. See the svccfg(8) man page for the complete list of layer names, and see Repository Layers for descriptions of the layers. The current and all layer names both mean select the highest-layer value for each property.

    The following command extracts the highest-layer setting for each property for the network/dns/client service into the dnsclientprofile.xml file:

    $ svccfg extract -l current network/dns/client > dnsclientprofile.xml
  2. Make any necessary changes to the profile.

    Change the name of the profile to a meaningful name. By default, the name is set to extract, as shown in the following example:

    <service_bundle type='profile' name='extract'>

    Make any changes that are necessary for the target systems.

  3. Copy the profile to the correct directory.

    The following command indicates that this profile is for all systems at a given locale or site:

    $ cp dnsclientprofile.xml /etc/svc/profile/site/

    Change the ownership and permissions of the profile as necessary.

  4. Restart the manifest import service to apply the profile to the system.
    $ svcadm restart manifest-import

    Check the manifest-import service log file for messages about property value conflicts or any other error messages.

    $ svcs -Lv manifest-import

    Use the svcs -x command to check that no services are in maintenance.