Solaris Start-Up and Shutdown

/etc/rc0
  • Stops System services and daemons
  • Terminates all running processes
  • Unmounts all file systems

/etc/rc1
  • Runs the /etc/rc1.d scripts
  • Stops system services and daemons
  • Terminates all running processes
  • Unmounts all file systems
  • Brings the system to single-usr mode

/etc/rc2
  • Sets the TIMEZONE variable
  • Runs the /etc/rc2.d scripts
  • Mounts all file systems
  • Saves editing files in /usr/preserve
  • Removes any files in the /tmp directory
  • Creates device entries in /dev for new devices, if boot -r is run
  • Updates device.tab device table
  • Prints system configuration
  • Configures system accounting
  • Configures default router
  • Sets NIS domain
  • Sets ifconfig netmask
  • Starts inetd
  • Starts named, if appropriate
  • Starts rpcbind
  • Starts Kerberos client-side daemon, kerbd
  • Starts NIS daemons (ypbind) and NIS+ daemons (rpcnisd), depending on whether the system is configured for NIS or NIS+, and as a client or a server.
  • Starts keyserv
  • Starts statd, lockd
  • Mounts all NFS entries
  • Starts automount
  • Starts cron
  • Starts the lp (printer) daemon
  • Starts the sendmail daemon

/etc/rc3
  • Runs the /etc/rc3.d scripts
  • Starts syslogd
  • Cleans up sharetab
  • Starts nfsds
  • Starts mountd
  • If boot server, starts rarpd and rpc.bootparamd
  • Starts nis_cachemanager
  • Starts rpc.nisd
  • Starts RFS services, if configured

/etc/rc5
  • Runs the /etc/rc0.d scripts
  • Kills the printer daemons
  • Unmounts local file systems
  • Kills the syslog daemon
  • Unmounts remote file systems
  • Stops RFS services
  • Stops NFS services
  • Stops NIS services
  • Stops rpc services
  • Stops cron services
  • Stops NFS client services
  • Kills all active processes
  • Initiates an interactive boot (boot -a)

/etc/rc6
  • Executes /etc/rc0.d scripts that begin with a K (Kill).
  • Kills all active processes
  • Unmounts the file systems
  • Executes the initdefault entries in /etc/inittab


init 0 - Power down state. Used to properly shutdown the system so that it is safe to power off. Executes /etc/rc0.

init 1,S, or s - Referred to as single-user mode. Used to perform certain system administration tasks that require no one else be logged into the system, such as system tape back-ups. the / and /usr directories are the only two file systems mounted. Executes /etc/rc1.

init 2 - Multi-user state, system resources aren't exported. Multiple users can access the system and the entire file system. All daemons are running except for the NFS Server, syslog, and RFS. Executes /etc/rc2.

init 3 - Multi-user state, system resources are exported. Executes /etc/rc3.

init 5 - User is prompted for another boot device other than the default boot device. Executes /etc/rc5.

init 6 - Used to reboot the system. Executes /etc/rc6.

Please Note: init state four is not currently in use.


Source: Solaris System Administrator's Guide by Janice Winsor
Published by SunSoft press 1993



| Leave Comments | View Comments |



| Main Solaris Page |