home *** CD-ROM | disk | FTP | other *** search
/ tusportal.tus.k12.pa.us / tusportal.tus.k12.pa.us.tar / tusportal.tus.k12.pa.us / Wyse / latest-image.raw / 0.img / sbin / init.d.README < prev    next >
Text File  |  2010-05-05  |  8KB  |  176 lines

  1. INIT.D(7)                    The SuSE boot concept                   INIT.D(7)
  2.  
  3.  
  4.  
  5. NAME
  6.        INIT.D - The SuSE boot concept
  7.  
  8. SYNOPSIS
  9.        /etc/init.d/*
  10.  
  11.        /etc/sysconfig
  12.  
  13. DESCRIPTION
  14.        The scripts for controlling the system are placed in /etc/init.d/ (they
  15.        have been moved according to the Linux Standard Base  (LSB)  specifica-
  16.        tion).    These   scripts   are  executed  directly  or  indirectly  by
  17.        /sbin/init,  the  father  of  all  processes.  The   configuration   of
  18.        /sbin/init is given by the file /etc/inittab (see inittab(5)).
  19.  
  20.        At  boot  time, the boot level master script /etc/init.d/boot is called
  21.        to initialise the system (e.g. file system check, ...).  It  also  exe-
  22.        cutes some hardware init scripts linked into /etc/init.d/boot.d/.  Then
  23.        it calls /etc/init.d/boot.local, which executes the local commands.
  24.  
  25.        After system startup, /sbin/init will normally switch  on  the  default
  26.        run  level given in /etc/inittab.  It calls the run level master script
  27.        /etc/init.d/rc to start or stop services provided by the other  scripts
  28.        under /etc/init.d/.
  29.  
  30.        Both  scripts,  then  boot level master script /etc/init.d/boot and the
  31.        the run level master script /etc/init.d/rc starts  all  other  boot  or
  32.        runlevel  scripts  either  sequential  or partial parallel within their
  33.        dependencies order.
  34.  
  35.        To control the services of a run level, the corresponding  scripts  are
  36.        linked   into   run   level   directories  /etc/init.d/rc<X>.d/,  where
  37.        <X>=0,1,2,3,4,5,6,S is the run level number.
  38.  
  39.        There are two kinds of symbolic link: start  links,  which  are  called
  40.        when  entering a run level, and stop links, which are called when leav-
  41.        ing a run level.  Note that each service in the run levels 2, 3, 4, and
  42.        5 consists of a start and a stop link.  Within SuSE boot concept a dif-
  43.        ferential link scheme is used to be able to change a runlevel  in  com-
  44.        parision with the former level.
  45.  
  46.        If  parallel executing of the boot scripts is enabled (see /etc/syscon-
  47.        fig/boot variable RUN_PARALLEL) then both master scripts uses the  pro-
  48.        gram  startpar(8)  which starts or stops multiple services in parallel.
  49.        Startpar(8)  will  look   for   the   files   /etc/init.d/.depend.boot,
  50.        /etc/init.d/.depend.start, and   /etc/init.d/.depend.stop  to  get  the
  51.        dependencies for each service.  The files will be written,  beside  the
  52.        symbolic  links  in  the  boot and runlevel directories, by the program
  53.        insserv(8).
  54.  
  55.        To avoid redundant starts when changing run levels, only those services
  56.        are started which have no start link in the previous run level.  And to
  57.        avoid redundant stops when changing run levels, only those services are
  58.        stopped  which have no start link in the current level. To control this
  59.        behaviour, the names of the scripts are added on the names of the start
  60.        and stop links.
  61.  
  62.        To  control  the  order of service starts and stops, the start and stop
  63.        links include a number in their link name.
  64.  
  65.        The system configuration files in /etc/sysconfig contain  most  of  the
  66.        variables  used  to  configure the installed services.  These variables
  67.        can easily be changed by YaST or by using an  editor.  After  using  an
  68.        editor,  the  script  /sbin/SuSEconfig must be called to distribute the
  69.        settings into the system.
  70.  
  71.    Some details
  72.        The script /etc/init.d/lpd starts or stops the line printer daemon  for
  73.        the printing service, according to the flag used:
  74.  
  75.               /etc/init.d/lpd start
  76.        and
  77.  
  78.               /etc/init.d/lpd stop
  79.  
  80.        To  do  this  automatically  in run level 3, this script is linked into
  81.        /etc/init.d/rc3.d/ with these two symbolic links
  82.  
  83.               /etc/init.d/rc3.d/S20lpd -> ../lpd
  84.        and
  85.  
  86.               /etc/init.d/rc3.d/K20lpd -> ../lpd
  87.  
  88.        The corresponding link with the letter S is used to  start  a  service.
  89.        For  the  printing service the number between the letter S and the name
  90.        should be greater than the number of the start link of the network ser-
  91.        vice.   The corresponding link with the letter K is used to stop a ser-
  92.        vice. The number of the stop link for the printing  service  should  be
  93.        less  than  that  of  the stop link for the network service so that the
  94.        printer daemon is stopped before shutting down the network service.
  95.  
  96.    Run levels and their services
  97.        0      This level is used for halting the system. The only  valid  ser-
  98.               vice  for  this  level  is the script halt, which is linked into
  99.               /etc/init.d/rc0.d/.      The      script      halt      executes
  100.               /etc/init.d/halt.local.   Special  system  issues  for  halt  or
  101.               reboot should be added there.
  102.  
  103.        6      This level is used for rebooting the system. The only valid ser-
  104.               vice  for  this level is the script reboot, which is linked into
  105.               /etc/init.d/rc6.d/.      The     script     reboot      executes
  106.               /etc/init.d/halt.local.   Specials  system  issues  for  halt or
  107.               reboot should be added there.
  108.  
  109.        S      This mode is used to switch from boot  phase  into  single  user
  110.               mode.   The  last valid service for this mode is the script sin-
  111.               gle, which is linked into /etc/init.d/rcS.d/.  In this mode  you
  112.               have only one console.
  113.  
  114.        1      According  to  the  Linux Standard Base (LSB) specification this
  115.               runlevel is used to switch from normal runlevel into single user
  116.               mode.  This is different from former SuSE Linux versions!
  117.  
  118.        2      The  run level 2 is without remote networking. Note that on some
  119.               other systems this is identical with the single user mode.  This
  120.               run level can have more than one virtual console.
  121.  
  122.        3      The  run  level  3 is with network. This run level is for server
  123.               stations not automatically running X.
  124.  
  125.        5      The level 5 is with network and xdm(1).  You should have a  con-
  126.               figured and perfectly running X Window System for this work sta-
  127.               tion run level.
  128.  
  129.        4      The run level 4 is not (yet) used.
  130.  
  131.        /etc/init.d/skeleton
  132.               This script is a model  for  writing  your  own.   You  can  use
  133.               insserv(8) to include your own script into a run level.
  134.  
  135.  
  136. FILES
  137.        /etc/init.d/*
  138.        /etc/init.d/boot
  139.        /etc/init.d/boot.local
  140.        /etc/init.d/halt
  141.        /etc/init.d/halt.local
  142.        /etc/init.d/rc
  143.        /etc/init.d/reboot
  144.        /etc/init.d/skeleton
  145.        /etc/init.d/single
  146.        /etc/init.d/boot.d/S[0-9][0-9]*
  147.        /etc/init.d/rc0.d/{K,S}[0-9][0-9]*
  148.        /etc/init.d/rc1.d/{K,S}[0-9][0-9]*
  149.        /etc/init.d/rc2.d/{K,S}[0-9][0-9]*
  150.        /etc/init.d/rc3.d/{K,S}[0-9][0-9]*
  151.        /etc/init.d/rc4.d/{K,S}[0-9][0-9]*
  152.        /etc/init.d/rc5.d/{K,S}[0-9][0-9]*
  153.        /etc/init.d/rc6.d/{K,S}[0-9][0-9]*
  154.        /etc/init.d/rcS.d/{K,S}[0-9][0-9]*
  155.        /etc/init.d/.depend.boot
  156.        /etc/init.d/.depend.start
  157.        /etc/init.d/.depend.stop
  158.        /etc/inittab
  159.        /etc/sysconfig/boot
  160.        /etc/sysconfig
  161.  
  162. SEE ALSO
  163.        insserv(8),  startpar(8), init(8), inittab(5), and the SuSE Linux hand-
  164.        book, chapter The SuSE boot concept.
  165.  
  166. COPYRIGHT
  167.        1996-2005 SuSE Linux AG, Nuernberg, Germany.
  168.  
  169. AUTHORS
  170.        Florian   La   Roche   <http://www.suse.de/feedback>,    Werner    Fink
  171.        <werner@suse.de>, Burchard Steinbild <http://www.suse.de/feedback>.
  172.  
  173.  
  174.  
  175. 4.4 Berkeley Distribution        Nov 15, 2000                        INIT.D(7)
  176.