Managing System Services in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

How to Create a Profile by Using svccfg

  1. Create a profile.

    The svccfg extract command displays a service profile for the specified service or instance for the admin and site-profile layers. To extract values from other layers, use the -l option.

    $ 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'>
  3. Copy the profile to the correct directory.
    $ cp dnsclientprofile.xml /etc/svc/profile/site/dnsclientprofile.xml
  4. Restart the manifest import service to apply the profile to the system.
    $ svcadm restart manifest-import