Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rc(1) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

chngstate

cron

fsck, dfsck

init

mount

pstart, penable, pshare, pdelay

rc

PURPOSE

     Performs normal startup initialization.

SYNOPSIS
     /etc/rc

DESCRIPTION

     When  the init  process starts  up the  system in  normal
     operating  mode,  it runs  the  command  file /etc/rc  to
     perform  the necessary  system initialization,  including
     the enabling of various loggers.   If the system is being
     brought up with no file  system checking, init passes the
     argument m to rc.  If  init determines that the root file
     system needs consistency checking, it passes the argument
     d to rc.

     The contents of /etc/rc may be installation specific, but
     there are a few things that it should do:

     o   Check the  default file systems  if rc is  passed the
         init -d flag (Run fsck)
     o   Mount the default file systems (Run mount)
     o   Purge temporary files
     o   Start SNA  and Distributed Services  (Run /etc/rc.sna
         and /etc/rc.ds)
     o   Set printer defaults
     o   Enable default ports (Run pstart)
     o   Determine whether  to set  up stand-alone  or active-
         service system (Run chngstate)
     o   Start the error daemon and run /etc/rc.include.

     If all of the necessary operations complete successfully,
     the file exits  with a zero return code  that allows init
     to start  loggers to  complete normal  initialization and
     startup.

     Notes:

     1.  Many system  daemons such as  cron are started  by rc
         indirectly when it runs /etc/rc.include.

     2.  The mail facility is started by rc indirectly when it
         runs /etc/rc.include and /etc/rc.tcpip.

     3.  The root file system is implicitly mounted.

FILES

     /etc/rc.ds             Performs  functions   required  to
                            start Distributed Services.
     /etc/rc.include        Performs  functions   required  to
                            start most program daemons.
     /etc/rc.sna            Performs  functions   required  to
                            start SNA.
     /etc/rc.tcpip          Performs  functions   required  to
                            start TCPIP.

RELATED INFORMATION

     The  following  commands:  "chngstate,"   "cron,"  "fsck,
     dfsck,"  "init," "mount,"  and  "pstart, penable, pshare,
     pdelay."

     The discussion of starting up  the system in Managing the
     AIX Operating System.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026