[673b0d8] | 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 | ]>
|
---|
[a001133] | 6 | <sect1 id="ch-system-sysklogd" xreflabel="Sysklogd" role="wrap">
|
---|
[673b0d8] | 7 | <title>Sysklogd-&sysklogd-version;</title>
|
---|
| 8 | <?dbhtml filename="sysklogd.html"?>
|
---|
| 9 |
|
---|
| 10 | <indexterm zone="ch-system-sysklogd"><primary sortas="a-Sysklogd">Sysklogd</primary></indexterm>
|
---|
[6370fa6] | 11 |
|
---|
[a001133] | 12 | <sect2 role="package"><title/>
|
---|
[5888299] | 13 | <para>The Sysklogd package contains programs for logging system messages, such
|
---|
| 14 | as those given by the kernel when unusual things happen.</para>
|
---|
| 15 |
|
---|
[a001133] | 16 | <segmentedlist>
|
---|
| 17 | <segtitle>&buildtime;</segtitle>
|
---|
| 18 | <segtitle>&diskspace;</segtitle>
|
---|
| 19 | <seglistitem><seg>0.1 SBU</seg><seg>0.5 MB</seg></seglistitem>
|
---|
| 20 | </segmentedlist>
|
---|
[673b0d8] | 21 |
|
---|
[a001133] | 22 | <segmentedlist>
|
---|
| 23 | <segtitle>Sysklogd installation depends on</segtitle>
|
---|
[69993f4] | 24 | <seglistitem><seg>Binutils, Coreutils, GCC, Glibc, and Make</seg></seglistitem>
|
---|
[a001133] | 25 | </segmentedlist>
|
---|
| 26 | </sect2>
|
---|
[3554fa3a] | 27 |
|
---|
[a001133] | 28 | <sect2 role="installation">
|
---|
[73aedd1d] | 29 | <title>Installation of Sysklogd</title>
|
---|
| 30 |
|
---|
[ef13657] | 31 | <para>Sysklogd has issues with the Linux 2.6 kernel series. Fix these
|
---|
| 32 | issues by applying the following patch:</para>
|
---|
[9dfc02f] | 33 |
|
---|
[71bbe67] | 34 | <screen><userinput>patch -Np1 -i ../sysklogd-&sysklogd-version;-kernel_headers-1.patch</userinput></screen>
|
---|
[9dfc02f] | 35 |
|
---|
[ef13657] | 36 | <para>There is also a race condition in the signal handling logic, and
|
---|
| 37 | this sometimes confuses the <command>sysklogd</command> initscript.
|
---|
[dc20ac5] | 38 | Fix this bug by applying another patch:</para>
|
---|
| 39 |
|
---|
| 40 | <screen><userinput>patch -Np1 -i ../sysklogd-&sysklogd-version;-signal-1.patch</userinput></screen>
|
---|
| 41 |
|
---|
[73aedd1d] | 42 | <para>Compile Sysklogd:</para>
|
---|
| 43 |
|
---|
| 44 | <screen><userinput>make</userinput></screen>
|
---|
| 45 |
|
---|
[ef13657] | 46 | <para>Install the package:</para>
|
---|
[73aedd1d] | 47 |
|
---|
| 48 | <screen><userinput>make install</userinput></screen>
|
---|
| 49 |
|
---|
| 50 | </sect2>
|
---|
[5888299] | 51 |
|
---|
[342b176] | 52 |
|
---|
[df8334f] | 53 | <sect2 id="conf-sysklogd" role="configuration"><title>Configuring Sysklogd</title>
|
---|
[673b0d8] | 54 | <indexterm zone="conf-sysklogd">
|
---|
| 55 | <primary sortas="a-Sysklogd">Sysklogd</primary>
|
---|
| 56 | <secondary>configuring</secondary></indexterm>
|
---|
| 57 |
|
---|
| 58 | <indexterm zone="conf-sysklogd"><primary sortas="e-/etc/syslog.conf">/etc/syslog.conf</primary></indexterm>
|
---|
[342b176] | 59 |
|
---|
[ef13657] | 60 | <para>Create a new file <filename>/etc/syslog.conf</filename> by running the
|
---|
[342b176] | 61 | following:</para>
|
---|
| 62 |
|
---|
[8ad7980] | 63 | <screen><userinput>cat > /etc/syslog.conf << "EOF"
|
---|
[3890f5a] | 64 | <literal># Begin /etc/syslog.conf
|
---|
[342b176] | 65 |
|
---|
| 66 | auth,authpriv.* -/var/log/auth.log
|
---|
| 67 | *.*;auth,authpriv.none -/var/log/sys.log
|
---|
| 68 | daemon.* -/var/log/daemon.log
|
---|
| 69 | kern.* -/var/log/kern.log
|
---|
| 70 | mail.* -/var/log/mail.log
|
---|
| 71 | user.* -/var/log/user.log
|
---|
| 72 | *.emerg *
|
---|
| 73 |
|
---|
[3890f5a] | 74 | # End /etc/syslog.conf</literal>
|
---|
[8ad7980] | 75 | EOF</userinput></screen>
|
---|
[342b176] | 76 |
|
---|
| 77 | </sect2>
|
---|
[5888299] | 78 |
|
---|
| 79 |
|
---|
[c6cb3aa] | 80 | <sect2 id="contents-sysklogd" role="content"><title>Contents of Sysklogd</title>
|
---|
[673b0d8] | 81 |
|
---|
[c6cb3aa] | 82 | <segmentedlist>
|
---|
| 83 | <segtitle>Installed programs</segtitle>
|
---|
| 84 | <seglistitem><seg>klogd and syslogd</seg></seglistitem>
|
---|
| 85 | </segmentedlist>
|
---|
[73aedd1d] | 86 |
|
---|
[3ed279f] | 87 | <variablelist><bridgehead renderas="sect3">Short descriptions</bridgehead>
|
---|
| 88 | <?dbfo list-presentation="list"?>
|
---|
[673b0d8] | 89 |
|
---|
[b8a819f] | 90 | <varlistentry id="klogd">
|
---|
| 91 | <term><command>klogd</command></term>
|
---|
[c6cb3aa] | 92 | <listitem>
|
---|
[69993f4] | 93 | <para>a system daemon for intercepting and logging kernel messages.</para>
|
---|
[3ed279f] | 94 | <indexterm zone="ch-system-sysklogd klogd"><primary sortas="b-klogd">klogd</primary></indexterm>
|
---|
[c6cb3aa] | 95 | </listitem>
|
---|
| 96 | </varlistentry>
|
---|
[673b0d8] | 97 |
|
---|
[b8a819f] | 98 | <varlistentry id="syslogd">
|
---|
| 99 | <term><command>syslogd</command></term>
|
---|
[c6cb3aa] | 100 | <listitem>
|
---|
[ef13657] | 101 | <para>logs the messages that system programs offer for logging. Every
|
---|
| 102 | logged message contains at least a date stamp and a hostname, and
|
---|
[69993f4] | 103 | normally the program's name too depending on how
|
---|
| 104 | <quote>trusting</quote> the logging daemon is told to be.</para>
|
---|
[3ed279f] | 105 | <indexterm zone="ch-system-sysklogd syslogd"><primary sortas="b-syslogd">syslogd</primary></indexterm>
|
---|
[c6cb3aa] | 106 | </listitem>
|
---|
| 107 | </varlistentry>
|
---|
| 108 | </variablelist>
|
---|
[673b0d8] | 109 |
|
---|
| 110 | </sect2>
|
---|
| 111 |
|
---|
| 112 | </sect1>
|
---|
[ef13657] | 113 |
|
---|