Specifications

Red Hat Enterprise Linux to Oracle Solaris Porting Guide
81
intervention is required, system administrators can quickly identify the root cause of the service's
failure and significantly reduce system down time.
By moving to SMF on Oracle Solaris 11, system administrators will be able to perform the following
tasks through a single framework:
Observe and manage system-wide services.
Provide consistent configuration handling.
Automatically restart failed services in the appropriate order of dependency.
Identify misbehaved or failed services.
Securely delegate administrative tasks to non-root users.
Preserve compatibility with legacy services.
Automatically configure system administration jobs such as backup, restore, and so on.
Managing Services Through SMF
Here are some of the most important SMF commands and their purpose:
svcs: Reports a service’s status.
svcadm: Used for service management, for example, for starting, stopping, and restoring services.
svccfg: Used to import, export,and modify service configurations.
svcprop: Used to list the properties of a service.
inetadm: Used to manage inetd services.SMF provides a uniform mechanism for managing
system services. SMF defines a set of actions that can be invoked on a service by an administrator.
These actions include commands to enable, disable, refresh, or restart a service.
For example, you can view the current state of all services with the following command:
#svcs -a
STATE STIME FMRI
legacy_run Mar_12 lrc:/etc/rc2_d/S10lu
legacy_run Mar_12 lrc:/etc/rc2_d/S20sysetup
legacy_run Mar_12 lrc:/etc/rc2_d/S47pppd
online Mar_12 svc:/system/svc/restarter:default
online Mar_12 svc:/network/loopback:default
online Mar_12 svc:/network/tnctl:default
:
:
You can start the cron daemon with the following command:
#svcadm enable cron