Go to main content

Developing System Services in Oracle® Solaris 11.3

Exit Print View

Updated: September 2018
 
 

Naming Services, Instances, Property Groups, and Properties

Service names, instance names, property group names, and property names must fit the following expression:

([A-Za-z][_A-Za-z0-9.-]*,)?[A-Za-z][_A-Za-z0-9-]*

A service name, instance name, property group name, or property name is case sensitive, must begin with an alphabetic character, and can contain alphanumeric characters, the underscore (_), and the hyphen (-). Optionally, a provider name can be included at the beginning of the service, instance, property group, or property name. The provider name is separated by a comma (,), must begin with an alphabetic character, and can contain one or more periods (.).

In an FMRI, property group and property names are encoded according to the Uniform Resource Identifier (URI) Generic Syntax RFC 3986 Internet standard except that the comma character is not encoded.

The following example shows a full FMRI for a property: the FMRI of the service instance, followed by /:properties/, followed by the name of the property. You can use the -f option of the svcprop command to show the full FMRI of a property.

svc:/application/pkg/server:default/:properties/pkg/port

For information about service FMRIs, see Service Names in Managing System Services in Oracle Solaris 11.3.