INIT.D(7)                    The SuSE boot concept                   INIT.D(7)



[1mNAME[0m
       INIT.D - The SuSE boot concept

[1mSYNOPSIS[0m
       [1m/etc/init.d/*[0m

       [1m/etc/sysconfig[0m

[1mDESCRIPTION[0m
       The scripts for controlling the system are placed in [4m/etc/init.d/[24m (they
       have been moved according to the Linux Standard Base  (LSB)  specifica-
       tion).    These   scripts   are  executed  directly  or  indirectly  by
       [1m/sbin/init[22m,  the  father  of  all  processes.  The   configuration   of
       [1m/sbin/init [22mis given by the file [1m/etc/inittab [22m(see [1minittab[22m(5)).

       At  boot  time, the boot level master script [4m/etc/init.d/boot[24m is called
       to initialise the system (e.g. file system check, ...).  It  also  exe-
       cutes some hardware init scripts linked into [4m/etc/init.d/boot.d/[24m.  Then
       it calls [4m/etc/init.d/boot.local[24m, which executes the local commands.

       After system startup, [1m/sbin/init [22mwill normally switch  on  the  default
       run  level given in [1m/etc/inittab[22m.  It calls the run level master script
       [4m/etc/init.d/rc[24m to start or stop services provided by the other  scripts
       under [4m/etc/init.d/[24m.

       Both  scripts,  then  boot level master script [4m/etc/init.d/boot[24m and the
       the run level master script [4m/etc/init.d/rc[24m starts  all  other  boot  or
       runlevel  scripts  either  sequential  or partial parallel within their
       dependencies order.

       To control the services of a run level, the corresponding  scripts  are
       linked   into   run   level   directories  [4m/etc/init.d/rc<X>.d/[24m,  where
       [1m<X>=0[22m,[1m1[22m,[1m2[22m,[1m3[22m,[1m4[22m,[1m5[22m,[1m6[22m,[1mS [22mis the run level number.

       There are two kinds of [1msymbolic [22mlink: start  links,  which  are  called
       when  entering a run level, and stop links, which are called when leav-
       ing a run level.  Note that each service in the run levels 2, 3, 4, and
       5 consists of a start [1mand [22ma stop link.  Within SuSE boot concept a [4mdif-[0m
       [4mferential[24m link scheme is used to be able to [1mchange [22ma runlevel  in  com-
       parision with the former level.

       If  parallel executing of the boot scripts is enabled (see [4m/etc/syscon-[0m
       [4mfig/boot[24m variable [1mRUN_PARALLEL[22m) then both master scripts uses the  pro-
       gram  [1mstartpar[22m(8)  which starts or stops multiple services in parallel.
       [1mStartpar[22m(8)  will  look   for   the   files   [4m/etc/init.d/.depend.boot[24m,
       [4m/etc/init.d/.depend.start[24m, and   [4m/etc/init.d/.depend.stop[24m  to  get  the
       dependencies for each service.  The files will be written,  beside  the
       symbolic  links  in  the  boot and runlevel directories, by the program
       [1minsserv[22m(8).

       To avoid redundant starts when changing run levels, only those services
       are started which have no start link in the previous run level.  And to
       avoid redundant stops when changing run levels, only those services are
       stopped  which have no start link in the current level. To control this
       behaviour, the names of the scripts are added on the names of the start
       and stop links.

       To  control  the  order of service starts and stops, the start and stop
       links include a number in their link name.

       The system configuration files in [4m/etc/sysconfig[24m contain  most  of  the
       variables  used  to  configure the installed services.  These variables
       can easily be changed by [1mYaST [22mor by using an  editor.  After  using  an
       editor,  the  script  [4m/sbin/SuSEconfig[24m must be called to distribute the
       settings into the system.

   [1mSome details[0m
       The script [4m/etc/init.d/lpd[24m starts or stops the line printer daemon  for
       the printing service, according to the flag used:

              [1m/etc/init.d/lpd start[0m
       and

              [1m/etc/init.d/lpd stop[0m

       To  do  this  automatically  in run level [1m3[22m, this script is linked into
       [4m/etc/init.d/rc3.d/[24m with these two symbolic links

              [1m/etc/init.d/rc3.d/S20lpd -> ../lpd[0m
       and

              [1m/etc/init.d/rc3.d/K20lpd -> ../lpd[0m

       The corresponding link with the letter [1mS [22mis used to  start  a  service.
       For  the  printing service the number between the letter [1mS [22mand the name
       should be greater than the number of the start link of the network ser-
       vice.   The corresponding link with the letter [1mK [22mis used to stop a ser-
       vice. The number of the stop link for the printing  service  should  be
       less  than  that  of  the stop link for the network service so that the
       printer daemon is stopped before shutting down the network service.

   [1mRun levels and their services[0m
       [1m0      [22mThis level is used for halting the system. The only  valid  ser-
              vice  for  this  level  is the script [1mhalt[22m, which is linked into
              [4m/etc/init.d/rc0.d/[24m.      The      script      [1mhalt      [22mexecutes
              [4m/etc/init.d/halt.local[24m.   Special  system  issues  for  halt  or
              reboot should be added there.

       [1m6      [22mThis level is used for rebooting the system. The only valid ser-
              vice  for  this level is the script [1mreboot[22m, which is linked into
              [4m/etc/init.d/rc6.d/[24m.      The     script     [1mreboot      [22mexecutes
              [4m/etc/init.d/halt.local[24m.   Specials  system  issues  for  halt or
              reboot should be added there.

       [1mS      [22mThis mode is used to switch from boot  phase  into  single  user
              mode.   The  last valid service for this mode is the script [1msin-[0m
              [1mgle[22m, which is linked into [4m/etc/init.d/rcS.d/[24m.  In this mode  you
              have only [1mone [22mconsole.

       [1m1      [22mAccording  to  the  Linux Standard Base (LSB) specification this
              runlevel is used to switch from normal runlevel into single user
              mode.  [1mThis is different from former SuSE Linux versions![0m

       [1m2      [22mThe  run level 2 is without remote networking. Note that on some
              other systems this is identical with the single user mode.  This
              run level can have more than one virtual console.

       [1m3      [22mThe  run  level  3 is with network. This run level is for [1mserver[0m
              [1mstations [22mnot automatically running [4mX[24m.

       [1m5      [22mThe level 5 is with network and [1mxdm[22m(1).  You should have a  con-
              figured and perfectly running [4mX[24m [4mWindow[24m [4mSystem[24m for this [1mwork sta-[0m
              [1mtion [22mrun level.

       [1m4      [22mThe run level 4 is not (yet) used.

       [1m/etc/init.d/skeleton[0m
              This script is a model  for  writing  your  own.   You  can  use
              [1minsserv[22m(8) to include your own script into a run level.


[1mFILES[0m
       [4m/etc/init.d/*[0m
       [4m/etc/init.d/boot[0m
       [4m/etc/init.d/boot.local[0m
       [4m/etc/init.d/halt[0m
       [4m/etc/init.d/halt.local[0m
       [4m/etc/init.d/rc[0m
       [4m/etc/init.d/reboot[0m
       [4m/etc/init.d/skeleton[0m
       [4m/etc/init.d/single[0m
       [4m/etc/init.d/boot.d/S[0-9][0-9]*[0m
       [4m/etc/init.d/rc0.d/{K,S}[0-9][0-9]*[0m
       [4m/etc/init.d/rc1.d/{K,S}[0-9][0-9]*[0m
       [4m/etc/init.d/rc2.d/{K,S}[0-9][0-9]*[0m
       [4m/etc/init.d/rc3.d/{K,S}[0-9][0-9]*[0m
       [4m/etc/init.d/rc4.d/{K,S}[0-9][0-9]*[0m
       [4m/etc/init.d/rc5.d/{K,S}[0-9][0-9]*[0m
       [4m/etc/init.d/rc6.d/{K,S}[0-9][0-9]*[0m
       [4m/etc/init.d/rcS.d/{K,S}[0-9][0-9]*[0m
       [4m/etc/init.d/.depend.boot[0m
       [4m/etc/init.d/.depend.start[0m
       [4m/etc/init.d/.depend.stop[0m
       [4m/etc/inittab[0m
       [4m/etc/sysconfig/boot[0m
       [4m/etc/sysconfig[0m

[1mSEE ALSO[0m
       [1minsserv[22m(8),  [1mstartpar[22m(8), [1minit[22m(8), [1minittab[22m(5), and the [4mSuSE[24m [4mLinux[24m hand-
       book, chapter [4mThe[24m [4mSuSE[24m [4mboot[24m [4mconcept[24m.

[1mCOPYRIGHT[0m
       1996-2005 SuSE Linux AG, Nuernberg, Germany.

[1mAUTHORS[0m
       Florian   La   Roche   <http://www.suse.de/feedback>,    Werner    Fink
       <werner@suse.de>, Burchard Steinbild <http://www.suse.de/feedback>.



4.4 Berkeley Distribution        Nov 15, 2000                        INIT.D(7)
