sysklogd.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-sysklogd" xreflabel="Sysklogd" role="wrap">
  7. <title>Sysklogd-&sysklogd-version;</title>
  8. <?dbhtml filename="sysklogd.html"?>
  9. <indexterm zone="ch-system-sysklogd"><primary sortas="a-Sysklogd">Sysklogd</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Sysklogd package contains programs for logging system messages, such
  12. as those given by the kernel when unusual things happen.</para>
  13. <segmentedlist>
  14. <segtitle>&buildtime;</segtitle>
  15. <segtitle>&diskspace;</segtitle>
  16. <seglistitem><seg>0.1 SBU</seg><seg>0.5 MB</seg></seglistitem>
  17. </segmentedlist>
  18. <segmentedlist>
  19. <segtitle>Sysklogd installation depends on</segtitle>
  20. <seglistitem><seg>Binutils, Coreutils, GCC, Glibc, Make</seg></seglistitem>
  21. </segmentedlist>
  22. </sect2>
  23. <sect2 role="installation">
  24. <title>Installation of Sysklogd</title>
  25. <para>Sysklogd has issues with the Linux 2.6 kernel series - fix these isues
  26. by applying the following patch:</para>
  27. <screen><userinput>patch -Np1 -i ../sysklogd-&sysklogd-version;-kernel_headers-1.patch</userinput></screen>
  28. <para>There is also a race condition in the signal handling logic, and this
  29. sometimes confuses the <command>sysklogd</command> initscript.
  30. Fix this bug by applying another patch:</para>
  31. <screen><userinput>patch -Np1 -i ../sysklogd-&sysklogd-version;-signal-1.patch</userinput></screen>
  32. <para>Compile Sysklogd:</para>
  33. <screen><userinput>make</userinput></screen>
  34. <para>Now install it:</para>
  35. <screen><userinput>make install</userinput></screen>
  36. </sect2>
  37. <sect2 id="conf-sysklogd" role="configuration"><title>Configuring Sysklogd</title>
  38. <indexterm zone="conf-sysklogd">
  39. <primary sortas="a-Sysklogd">Sysklogd</primary>
  40. <secondary>configuring</secondary></indexterm>
  41. <indexterm zone="conf-sysklogd"><primary sortas="e-/etc/syslog.conf">/etc/syslog.conf</primary></indexterm>
  42. <para>Create a new <filename>/etc/syslog.conf</filename> file by running the
  43. following:</para>
  44. <screen><userinput>cat &gt; /etc/syslog.conf &lt;&lt; "EOF"
  45. # Begin /etc/syslog.conf
  46. auth,authpriv.* -/var/log/auth.log
  47. *.*;auth,authpriv.none -/var/log/sys.log
  48. daemon.* -/var/log/daemon.log
  49. kern.* -/var/log/kern.log
  50. mail.* -/var/log/mail.log
  51. user.* -/var/log/user.log
  52. *.emerg *
  53. # End /etc/syslog.conf
  54. EOF</userinput></screen>
  55. </sect2>
  56. <sect2 id="contents-sysklogd" role="content"><title>Contents of Sysklogd</title>
  57. <segmentedlist>
  58. <segtitle>Installed programs</segtitle>
  59. <seglistitem><seg>klogd and syslogd</seg></seglistitem>
  60. </segmentedlist>
  61. <variablelist><title>Short descriptions</title>
  62. <varlistentry id="klogd">
  63. <term><command>klogd</command></term>
  64. <listitem>
  65. <indexterm zone="ch-system-sysklogd klogd"><primary sortas="b-klogd">klogd</primary></indexterm>
  66. <para>is a system daemon for intercepting and logging kernel messages.</para>
  67. </listitem>
  68. </varlistentry>
  69. <varlistentry id="syslogd">
  70. <term><command>syslogd</command></term>
  71. <listitem>
  72. <indexterm zone="ch-system-sysklogd syslogd"><primary sortas="b-syslogd">syslogd</primary></indexterm>
  73. <para>logs the messages that system programs
  74. offer for logging. Every logged message contains at least a date stamp and a
  75. hostname, and normally the program's name too, but that depends on how
  76. trusting the logging daemon is told to be.</para>
  77. </listitem>
  78. </varlistentry>
  79. </variablelist>
  80. </sect2>
  81. </sect1>