Managing System Services in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

Listing Instances That Depend on a Service

The svcs -D command lists the service instances that depend on a given service.

This example shows the service instances that depend on the system-repository service:

$ svcs -D system-repository
STATE          STIME    FMRI
online         16:39:30 svc:/application/pkg/zones-proxyd:default

The following command confirms that zones-proxyd depends on system-repository.

$ svcs -do svc,desc zones-proxyd
SVC                               DESC
application/pkg/system-repository IPS System Repository
system/filesystem/minimal         minimal file system mounts
milestone/network                 Network milestone

The following command shows more information about how zones-proxyd depends on system-repository. The last line of this output shows that the zones-proxyd service requires the system-repository service to be running and shows that system-repository is currently running. This output also shows that the zones-proxyd service will be restarted if the system-repository service is refreshed.

$ svcs -l zones-proxyd
fmri         svc:/application/pkg/zones-proxyd:defaulr
name         Zones Proxy Daemon
enabled      true
state        online
next_state   none
state_time   January 6, 2014 04:39:30 PM PST
restarter    svc:/system/svc/restarter:default
manifest     /lib/svc/manifest/application/pkg/zoneproxyd.xml
dependency   require_any/none svc:/system/filesystem/minimal (online)
dependency   require_any/error svc:/milestone/network (online)
dependency   require_all/restart svc:/application/pkg/system-repository (online)