Go to main content

Developing System Services in Oracle® Solaris 11.4

Exit Print View

Updated: November 2020
 
 

Naming Services and Instances

Instance names must match the following expression:

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

Service names must match the following expression, where name is an instance name:

name(/name)*

Instance names have the following characteristics:

  • Are case sensitive

  • Must begin with an alphanumeric character

  • Can contain alphanumeric characters, the underscore (_), the hyphen (-), and the dot (.)

  • Can have a single comma (,) between the first and last character

Except for the comma, this specification is a subset of the characters defined in the Uniform Resource Identifier (URI) Generic Syntax RFC 3986.

A provider name can be included at the beginning of the service or instance name. A provider name has the following characteristics:

  • Is separated from the rest of the service or instance name by a comma (,)

  • Must begin with an alphanumeric character

  • Can contain one or more periods (.)