Basics of Service Management Facility (SMF) on Oracle Solaris 11
- A software framework that manages the services on a system.
- Each service has a well-defined state and a relationship to other dependent services.
- Ability to run multiple instances of a given service and share common configuration.
- Configuration repository managed by
svc.configd
- Each service described using a Fault Management Reousrce Indicator (FMRI)
- SMF framework always active on Oracle Solaris 11 - started and restarted through the default init process.
Listing services
svcs
svcs -a # Lists additional new service instances.
svcs *ftp* # Searches for services containing *ftp*
Managing services
If change configuration file, need to restart service using svcadm
enable
/disable
:
svcadm disable ftp
svcadm enable ftp
svcadm restart ftp
- Note that
svcsadm restart
does not commit property changes to the running snapshot and does not run the refesh method of the instance.
Troubleshooting system services
svcs -xv svc:/network/ftp:default # Troubleshoot the FTP server