Solaris 10 SMF services

The SMF or Service Management Facility handles the control of services within Solaris 10. Below are some common commands for a useful lookup.

The service FMRI is an identifier of each service and can be seen by running the list services commands below. The FMRI in all the commands below can be replaced with just the service name as long as there are no other services with similar names.

List all services

List all services including disabled services
svcs -a

View a service current status
svcs -H <service_FMRI>

Start and stop service (add -t option to only temporarily start/stop)
svcadm enable <service_FMRI>
svcadm disable <service_FMRI>
svcadm reboot <service_FMRI>

Export a service description xml file
svccfg export <service_FMRI>

Import a service into SMF
svccfg import FOO.xml

Delete a service from SMF
svccfg delete <service_FMRI>


Tags: , , , , , , , ,

Leave a Reply