The following sections summarize the run control scripts that are used to start and stop system services when you change run levels.
The /sbin/rc0 script runs the /etc/rc0.d scripts to perform the following tasks:
Stops system services and daemons
Terminates all running processes
Unmounts all file systems
The /sbin/rc1 script runs the /etc/rc1.d scripts to perform the following tasks:
Stops system services and daemons
Terminates all running processes
Unmounts all file systems
Brings the system up in single-user level
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
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 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.
The /sbin/rc3 script runs the /etc/rc3.d scripts to perform the following tasks:
Starts the Apache server daemon (tomcat), if configured
Starts the DHCP daemon (in.dhcpd), if appropriate
Starts Kerberos KDC (krb5kdc) and Kerberos administration (kadmind) daemons, if configured
Starts Mobile IP daemon (mipagent), if configured
Starts the Samba daemons (smdb and nmdb), if configured
Starts the secure shell daemon (sshd), if appropriate
Starts the Solstice Enterprise Agents (dmispd and snmpXdmid)
Cleans up the /etc/dfs/sharetab file
Starts the NFS server daemons nfsd, mountd, and nfslogd, if appropriate
If the system is a boot server, starts the rarpd, rpc.bootparamd, and rpld daemons
The /sbin/rc5 and /sbin/rc6 scripts run the /etc/rc0.d/K* scripts to perform the following tasks:
Kills all active processes
Unmounts the file systems
The /sbin/rcS script runs the /etc/rcS.d scripts to bring the system up to run level S. The following tasks are performed by these scripts:
Establishes a minimal network
Mounts /usr, if necessary
Sets the system name
Checks the root (/) and /usr file systems
Mounts pseudo file systems (/proc and /dev/fd)
Rebuilds the device entries for reconfiguration boots
Checks and mounts other file systems to be mounted in single-user level