1
0

site.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. <!ENTITY site SYSTEM "../appendices/rc.site.script">
  6. %general-entities;
  7. ]>
  8. <sect1 id="ch-scripts-site">
  9. <?dbhtml filename="site.html"?>
  10. <title>The rc.site File</title>
  11. <indexterm zone="ch-scripts-site">
  12. <primary sortas="a-rc.site">rc.site</primary>
  13. </indexterm>
  14. <para>The optional <filename>/etc/sysconfig/rc.site</filename> file contains
  15. settings that are automatically set for each SystemV boot script. It can
  16. alternatively set the values specified in the <filename>hostname</filename>,
  17. <filename>console</filename>, and <filename>clock</filename> files in the
  18. <filename class='directory'>/etc/sysconfig/</filename> directory. If the
  19. associated variables are present in both these separate files and
  20. <filename>rc.site</filename>, the values in the script specific files have
  21. precedence. </para>
  22. <para><filename>rc.site</filename> also contains parameters that can
  23. customize other aspects of the boot process. Setting the IPROMPT variable
  24. will enable selective running of bootscripts. Other options are described
  25. in the file comments. The default version of the file is as follows:</para>
  26. <!-- Use role to fix a pdf generation problem -->
  27. <screen role="auto">&site;</screen>
  28. <sect2>
  29. <title>Customizing the Boot and Shutdown Scripts</title>
  30. <para>The LFS boot scripts boot and shut down a system in a fairly
  31. efficient manner, but there are a few tweaks that you can make in the
  32. rc.site file to improve speed even more and to adjust messages according
  33. to your preferences. To do this, adjust the settings in
  34. the <filename>/etc/sysconfig/rc.site</filename> file above.</para>
  35. <itemizedlist>
  36. <listitem><para>During the boot script <filename>udev</filename>, there is
  37. a call to <command>udev settle</command> that requires some time to
  38. complete. This time may or may not be required depending on devices present
  39. in the system. If you only have simple partitions and a single ethernet
  40. card, the boot process will probably not need to wait for this command. To
  41. skip it, set the variable OMIT_UDEV_SETTLE=y.</para></listitem>
  42. <listitem><para>The boot script <filename>udev_retry</filename> also runs
  43. <command>udev settle</command> by default. This command is only needed by
  44. default if the <filename class='directory'>/var</filename> directory is
  45. separately mounted. This is because the clock needs the file
  46. <filename>/var/lib/hwclock/adjtime</filename>. Other customizations may
  47. also need to wait for udev to complete, but in many installations it is not
  48. needed. Skip the command by setting the variable OMIT_UDEV_RETRY_SETTLE=y.
  49. </para></listitem>
  50. <listitem><para>By default, the file system checks are silent. This can
  51. appear to be a delay during the bootup process. To turn on the
  52. <command>fsck</command> output, set the variable VERBOSE_FSCK=y.
  53. </para></listitem>
  54. <listitem><para>When rebooting, you may want to skip the filesystem check,
  55. <command>fsck</command>, completely. To do this, either create the file
  56. <filename>/fastboot</filename> or reboot the system with the command
  57. <command>/sbin/shutdown -f -r now</command>. On the other hand, you can
  58. force all file systems to be checked by creating
  59. <filename>/forcefsck</filename> or running <command>shutdown</command> with
  60. the <parameter>-F</parameter> parameter instead of <parameter>-f</parameter>.
  61. </para>
  62. <para>Setting the variable FASTBOOT=y will disable <command>fsck</command>
  63. during the boot process until it is removed. This is not recommended
  64. on a permanent basis.</para></listitem>
  65. <listitem><para>Normally, all files in the <filename
  66. class='directory'>/tmp</filename> directory are deleted at boot time.
  67. Depending on the number of files or directories present, this can cause a
  68. noticeable delay in the boot process. To skip removing these files set the
  69. variable SKIPTMPCLEAN=y.</para></listitem>
  70. <listitem><para>During shutdown, the <command>init</command> program sends
  71. a TERM signal to each program it has started (e.g. agetty), waits for a set
  72. time (default 3 seconds), and sends each process a KILL signal and waits
  73. again. This process is repeated in the <command>sendsignals</command>
  74. script for any processes that are not shut down by their own scripts. The
  75. delay for <command>init</command> can be set by passing a parameter. For
  76. example to remove the delay in <command>init</command>, pass the -t0
  77. parameter when shutting down or rebooting (e.g. <command>/sbin/shutdown
  78. -t0 -r now</command>). The delay for the <command>sendsignals</command>
  79. script can be skipped by setting the parameter
  80. KILLDELAY=0.</para></listitem>
  81. </itemizedlist>
  82. </sect2>
  83. </sect1>