sysklogd.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-sysklogd" role="wrap">
  8. <?dbhtml filename="sysklogd.html"?>
  9. <title>Sysklogd-&sysklogd-version;</title>
  10. <indexterm zone="ch-system-sysklogd">
  11. <primary sortas="a-Sysklogd">Sysklogd</primary>
  12. </indexterm>
  13. <sect2 role="package">
  14. <title/>
  15. <para>The Sysklogd package contains programs for logging system messages,
  16. such as those given by the kernel when unusual things happen.</para>
  17. <segmentedlist>
  18. <segtitle>&buildtime;</segtitle>
  19. <segtitle>&diskspace;</segtitle>
  20. <seglistitem>
  21. <seg>0.1 SBU</seg>
  22. <seg>704 KB</seg>
  23. </seglistitem>
  24. </segmentedlist>
  25. <segmentedlist>
  26. <segtitle>&dependencies;</segtitle>
  27. <seglistitem>
  28. <seg>Binutils, Coreutils, GCC, Glibc, Make, and Patch</seg>
  29. </seglistitem>
  30. </segmentedlist>
  31. </sect2>
  32. <sect2 role="installation">
  33. <title>Installation of Sysklogd</title>
  34. <para>The following patch fixes various issues, including a problem building
  35. Sysklogd with Linux 2.6 series kernels</para>
  36. <screen><userinput>patch -Np1 -i ../&sysklogd-fixes-patch;</userinput></screen>
  37. <para>The following patch makes sysklogd treat bytes in the 0x80--0x9f range
  38. literally in the messages being logged, instead of replacing them with octal
  39. codes. Unpatched sysklogd would damage messages in the UTF-8 encoding.</para>
  40. <screen><userinput>patch -Np1 -i ../&sysklogd-8bit-patch;</userinput></screen>
  41. <para>Compile the package:</para>
  42. <screen><userinput>make</userinput></screen>
  43. <para>This package does not come with a test suite.</para>
  44. <para>Install the package:</para>
  45. <screen><userinput>make install</userinput></screen>
  46. </sect2>
  47. <sect2 id="conf-sysklogd" role="configuration">
  48. <title>Configuring Sysklogd</title>
  49. <indexterm zone="conf-sysklogd">
  50. <primary sortas="a-Sysklogd">Sysklogd</primary>
  51. <secondary>configuring</secondary>
  52. </indexterm>
  53. <indexterm zone="conf-sysklogd">
  54. <primary sortas="e-/etc/syslog.conf">/etc/syslog.conf</primary>
  55. </indexterm>
  56. <para>Create a new <filename>/etc/syslog.conf</filename> file by running the
  57. following:</para>
  58. <screen><userinput>cat &gt; /etc/syslog.conf &lt;&lt; "EOF"
  59. <literal># Begin /etc/syslog.conf
  60. auth,authpriv.* -/var/log/auth.log
  61. *.*;auth,authpriv.none -/var/log/sys.log
  62. daemon.* -/var/log/daemon.log
  63. kern.* -/var/log/kern.log
  64. mail.* -/var/log/mail.log
  65. user.* -/var/log/user.log
  66. *.emerg *
  67. # log the bootscript output:
  68. local2.* -/var/log/boot.log
  69. # End /etc/syslog.conf</literal>
  70. EOF</userinput></screen>
  71. </sect2>
  72. <sect2 id="contents-sysklogd" role="content">
  73. <title>Contents of Sysklogd</title>
  74. <segmentedlist>
  75. <segtitle>Installed programs</segtitle>
  76. <seglistitem>
  77. <seg>klogd and syslogd</seg>
  78. </seglistitem>
  79. </segmentedlist>
  80. <variablelist>
  81. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  82. <?dbfo list-presentation="list"?>
  83. <?dbhtml list-presentation="table"?>
  84. <varlistentry id="klogd">
  85. <term><command>klogd</command></term>
  86. <listitem>
  87. <para>A system daemon for intercepting and logging kernel messages</para>
  88. <indexterm zone="ch-system-sysklogd klogd">
  89. <primary sortas="b-klogd">klogd</primary>
  90. </indexterm>
  91. </listitem>
  92. </varlistentry>
  93. <varlistentry id="syslogd">
  94. <term><command>syslogd</command></term>
  95. <listitem>
  96. <para>Logs the messages that system programs offer for logging. Every
  97. logged message contains at least a date stamp and a hostname, and
  98. normally the program's name too, but that depends on how trusting the
  99. logging daemon is told to be</para>
  100. <indexterm zone="ch-system-sysklogd syslogd">
  101. <primary sortas="b-syslogd">syslogd</primary>
  102. </indexterm>
  103. </listitem>
  104. </varlistentry>
  105. </variablelist>
  106. </sect2>
  107. </sect1>