Managing System Services in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

Showing Service State

See Service States for descriptions of the states shown in these examples.

Example 2-1  Listing All Enabled Services

With no options or arguments, the svcs command lists all service instances that are enabled on this system, as well as instances that are temporarily disabled.

Service instances in the disabled state in this listing will be enabled on the next boot of the system. Instances in the legacy_run state are not managed by SMF. See Configuration Files and SMF Services for more information about these legacy services. See Getting More Information About Service States if you have services in the maintenance, degraded, or offline states.

The STIME column shows the time the instance entered the listed state. If the instance entered this state more than 24 hours ago, the STIME column shows the date.

$ svcs
STATE          STIME    FMRI
legacy_run     Sep_09   lrc:/etc/rc2_d/S47pppd
legacy_run     Sep_09   lrc:/etc/rc2_d/S81dodatadm_udaplt
legacy_run     Sep_09   lrc:/etc/rc2_d/S89PRESERVE
disabled       Sep_09   svc:/system/vbiosd:default
online         Sep_09   svc:/system/early-manifest-import:default
online         Sep_09   svc:/system/svc/restarter:default
...
Example 2-2  Listing All Installed Services

To list all service instances that are installed on this system, including disabled instances that will not be enabled automatically on next boot, use the svcs -a command.

$ svcs -a

An asterisk (*) is appended to the state for service instances that are transitioning from the listed state to another state. For example, offline* probably means the instance is still executing its start method.

A question mark (?) is displayed if the state is absent or unrecognized.

Example 2-3  Listing All Instances of a Service

With a service name specified, the svcs command lists all instances of a service. See Showing Selected Service Information for information about the -o option.

$ svcs -Ho inst identity
node
domain