System Administration Guide, Volume I

Run Control Script Summaries

Table 6-5 The /sbin/rc0 Script

Script Name 

Description 

/sbin/rc0

Performs the following tasks: 

 

  • Stops system services and daemons

  • Terminates all running processes

  • Unmounts all file systems

Table 6-6 The /sbin/rc1 Script

Script Name 

Description 

/sbin/rc1

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 mode

Table 6-7 The /sbin/rc2 Script

Script Name 

Description 

/sbin/rc2

Runs the /etc/rc2.d scripts to perform the following tasks:

 
  • Mounts all local file systems

  • Enables disk quotas if at least one file system was mounted with the quota option

  • Saves editor temporary files in /usr/preserve

  • Removes any files in the /tmp directory

  • Configures system accounting

  • Configures default router

  • Sets NIS domain and ifconfig netmask

  • Reboots the system from the installation media or a boot server if either /.PREINSTALL or /AUTOINSTALL exists

  • Starts inetd and rpcbind and named, if appropriate

  • Starts Kerberos client-side daemon, kerbd

  • Starts NIS daemons (ypbind) and NIS+ daemons (rpc.nisd), depending on whether the system is configured for NIS or NIS+, and whether the system is a client or a server

  • Starts keyserv, statd, lockd, xntpd, and utmpd

  • Mounts all NFS entries

  • Starts nscd (name service cache daemon)

  • Starts automount, cron, LP print service, sendmail, utmpd, and vold daemons


Note -

Many of the system services and applications that are started at run level 2 depend on what software is installed on the system.


Table 6-8 The /sbin/rc3 Script

Script Name 

Description 

/sbin/rc3

Runs the /etc/rc3.d scripts to perform the following tasks:

 
  • Cleans up sharetab

  • Starts nfsd

  • Starts mountd

  • If the system is a boot server, starts rarpd, rpc.bootparamd, and rpld

  • Starts snmpdx (SolsticeTM EnterpriseTM AgentTM process ).

Table 6-9 The /sbin/rc5 and /sbin/rc6 Scripts

Script Name 

Description 

/sbin/rc5 and /sbin/rc6

Runs the /etc/rc0.d/K* scripts to perform the following tasks:

 
  • Kills all active processes

  • Unmounts the file systems

  

Table 6-10 The /sbin/rcS Script

Script Name 

Description 

/sbin/rcS

Runs the /etc/rcS.d scripts to bring the system up to run level S. The following tasks are performed from 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 mode