The /sbin/rc2 script runs the /etc/rc2.d scripts to perform the following tasks, grouped by function:
Local system-related tasks:
Mounts all local file systems if the previous run level was S
Enables disk quotas if at least one file system was mounted with the quota option
Saves temporary editor files in the /usr/preserve directory
Removes any files and subdirectories in the /tmp directory
Starts system activity data collecting, system accounting, and system auditing, if configured
Starts the system logging daemon (syslogd), sets the default dump device, and rotates the /var/adm/messages file
Sets the default scheduling class if the /etc/dispadmin.conf file exists
Starts LP print service (lpsched) if a local printer is configured and cleans up the print queue
Configures power management, if appropriate
Starts the utmpd daemon
Starts the cron and vold daemons
Configures serial device stream
Configures WBEM services
Syncs volumes, if required, and starts the mdmonitord daemon to monitor the physical components of the volumes
Starts the CDE desktop login process, dtlogin, if appropriate
Network service or security-related tasks:
Configures the network interfaces, sets ifconfig netmask, and configures network routing, if appropriate
Starts network service (inetd and rpcbind) daemons
Starts the logical link controller (llc2), if configured
Sets the name service domain name, starts various name services daemons, depending on if the system is configured for a name service, and whether the system is a client or a server
Starts the keyserv, statd, lockd, and xntpd daemons, if appropriate
Mounts all NFS entries
Configures the Solaris Network Cache and Accelerator (NCA) and NCA logging, if appropriate
Starts the Solaris PPP server or client daemons (pppoed or pppd), if configured
Starts LDAP cache manager (ldap_cachemgr), if configured
Starts directory server (slapd) daemon, if configured
Starts DNS (in.named) daemon, if configured
Starts Service Location Protocol (slpd) daemon, if configured
Configures system resource controls and system pools if the /etc/rctladm.conf and /etc/pooladm.conf files exist
Starts the cachefsd, automount, and sendmail daemons, if appropriate
Starts the htt_server process
Install-related tasks:
Configures the boot environment for the Live Upgrade software upon system startup or system shutdown
Checks for the presence of the /etc/.UNCONFIGURE file to see if the system should be reconfigured
Reboots the system from the installation media or a boot server if either /.PREINSTALL or /AUTOINSTALL exists
Hardware-related tasks:
Starts the Sun Fire 15000 key management daemon (sckmd), if appropriate
Starts the Sun Fire 880 Dynamic Reconfiguration daemon (sf880drd), if appropriate
Runs the flash PROM update script
Configures any graphic frame buffers or graphic accelerators
Runs the FCode interpreter daemon (efdaemon), if necessary
Transitions the following services between run-level changes:
Apache (tomcat)
Boot server (in.rarpd), (rpc.bootparamd), or (rpld)
DHCP (in.dhcpd)
Kerberos KDC (krb5kdc ) and Kerberos administration (kadmind)
Mobile IP (mipagent)
NFS server (nfsd), (mountd), (nfslogd)
Samba (smdb) and (nmdb)
Secure shell (sshd)
Solstice Enterprise Agents (dmispd) and (snmpXdmid)
Many of the system services and applications that are started at run level 2 depend on what software is installed on the system.