sysklogd.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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">
  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. <para>The Sysklogd package contains programs for logging system messages, such
  11. as those given by the kernel when unusual things happen.</para>
  12. <screen>&buildtime; 0.1 SBU
  13. &diskspace; 0.5 MB</screen>
  14. <para>Sysklogd installation depends on: Binutils, Coreutils, GCC, Glibc, Make.</para>
  15. <sect2>
  16. <title>Installation of Sysklogd</title>
  17. <para>Sysklogd has issues with the Linux 2.6 kernel series - fix these isues
  18. by applying the following patch:</para>
  19. <screen><userinput>patch -Np1 -i ../sysklogd-&sysklogd-version;-kernel-headers-1.patch</userinput></screen>
  20. <para>There is also a race condition in the signal handling logic, and this
  21. sometimes confuses the <command>sysklogd</command> initscript.
  22. Fix this bug by applying another patch:</para>
  23. <screen><userinput>patch -Np1 -i ../sysklogd-&sysklogd-version;-signal-1.patch</userinput></screen>
  24. <para>Compile Sysklogd:</para>
  25. <screen><userinput>make</userinput></screen>
  26. <para>Now install it:</para>
  27. <screen><userinput>make install</userinput></screen>
  28. </sect2>
  29. <sect2 id="conf-sysklogd"><title>Configuring Sysklogd</title>
  30. <indexterm zone="conf-sysklogd">
  31. <primary sortas="a-Sysklogd">Sysklogd</primary>
  32. <secondary>configuring</secondary></indexterm>
  33. <indexterm zone="conf-sysklogd"><primary sortas="e-/etc/syslog.conf">/etc/syslog.conf</primary></indexterm>
  34. <para>Create a new <filename>/etc/syslog.conf</filename> file by running the
  35. following:</para>
  36. <screen><userinput>cat &gt; /etc/syslog.conf &lt;&lt; "EOF"</userinput>
  37. # Begin /etc/syslog.conf
  38. auth,authpriv.* -/var/log/auth.log
  39. *.*;auth,authpriv.none -/var/log/sys.log
  40. daemon.* -/var/log/daemon.log
  41. kern.* -/var/log/kern.log
  42. mail.* -/var/log/mail.log
  43. user.* -/var/log/user.log
  44. *.emerg *
  45. # End /etc/syslog.conf
  46. <userinput>EOF</userinput></screen>
  47. </sect2>
  48. <sect2 id="contents-sysklogd"><title>Contents of Sysklogd</title>
  49. <para><emphasis>Installed programs</emphasis>: klogd and syslogd</para>
  50. </sect2>
  51. <sect2><title>Short descriptions</title>
  52. <indexterm zone="ch-system-sysklogd klogd"><primary sortas="b-klogd">klogd</primary></indexterm>
  53. <para id="klogd"><command>klogd</command> is a system daemon for intercepting and
  54. logging kernel messages.</para>
  55. <indexterm zone="ch-system-sysklogd syslogd"><primary sortas="b-syslogd">syslogd</primary></indexterm>
  56. <para id="syslogd"><command>syslogd</command> logs the messages that system programs
  57. offer for logging. Every logged message contains at least a date stamp and a
  58. hostname, and normally the program's name too, but that depends on how
  59. trusting the logging daemon is told to be.</para>
  60. </sect2>
  61. </sect1>