[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 | ]>
|
---|
[752f4e5] | 6 | <sect1 id="ch-system-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 |
|
---|
[2256873] | 42 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 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 |
|
---|
[0e9a9e2] | 50 | <beginpage/>
|
---|
[73aedd1d] | 51 | </sect2>
|
---|
[5888299] | 52 |
|
---|
[342b176] | 53 |
|
---|
[df8334f] | 54 | <sect2 id="conf-sysklogd" role="configuration"><title>Configuring Sysklogd</title>
|
---|
[673b0d8] | 55 | <indexterm zone="conf-sysklogd">
|
---|
| 56 | <primary sortas="a-Sysklogd">Sysklogd</primary>
|
---|
| 57 | <secondary>configuring</secondary></indexterm>
|
---|
| 58 |
|
---|
| 59 | <indexterm zone="conf-sysklogd"><primary sortas="e-/etc/syslog.conf">/etc/syslog.conf</primary></indexterm>
|
---|
[342b176] | 60 |
|
---|
[ef13657] | 61 | <para>Create a new file <filename>/etc/syslog.conf</filename> by running the
|
---|
[342b176] | 62 | following:</para>
|
---|
| 63 |
|
---|
[8ad7980] | 64 | <screen><userinput>cat > /etc/syslog.conf << "EOF"
|
---|
[3890f5a] | 65 | <literal># Begin /etc/syslog.conf
|
---|
[342b176] | 66 |
|
---|
| 67 | auth,authpriv.* -/var/log/auth.log
|
---|
| 68 | *.*;auth,authpriv.none -/var/log/sys.log
|
---|
| 69 | daemon.* -/var/log/daemon.log
|
---|
| 70 | kern.* -/var/log/kern.log
|
---|
| 71 | mail.* -/var/log/mail.log
|
---|
| 72 | user.* -/var/log/user.log
|
---|
| 73 | *.emerg *
|
---|
| 74 |
|
---|
[3890f5a] | 75 | # End /etc/syslog.conf</literal>
|
---|
[8ad7980] | 76 | EOF</userinput></screen>
|
---|
[342b176] | 77 |
|
---|
| 78 | </sect2>
|
---|
[5888299] | 79 |
|
---|
| 80 |
|
---|
[c6cb3aa] | 81 | <sect2 id="contents-sysklogd" role="content"><title>Contents of Sysklogd</title>
|
---|
[673b0d8] | 82 |
|
---|
[c6cb3aa] | 83 | <segmentedlist>
|
---|
| 84 | <segtitle>Installed programs</segtitle>
|
---|
| 85 | <seglistitem><seg>klogd and syslogd</seg></seglistitem>
|
---|
| 86 | </segmentedlist>
|
---|
[73aedd1d] | 87 |
|
---|
[2256873] | 88 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
[3ed279f] | 89 | <?dbfo list-presentation="list"?>
|
---|
[673b0d8] | 90 |
|
---|
[b8a819f] | 91 | <varlistentry id="klogd">
|
---|
| 92 | <term><command>klogd</command></term>
|
---|
[c6cb3aa] | 93 | <listitem>
|
---|
[2256873] | 94 | <para>A system daemon for intercepting and logging kernel messages</para>
|
---|
[3ed279f] | 95 | <indexterm zone="ch-system-sysklogd klogd"><primary sortas="b-klogd">klogd</primary></indexterm>
|
---|
[c6cb3aa] | 96 | </listitem>
|
---|
| 97 | </varlistentry>
|
---|
[673b0d8] | 98 |
|
---|
[b8a819f] | 99 | <varlistentry id="syslogd">
|
---|
| 100 | <term><command>syslogd</command></term>
|
---|
[c6cb3aa] | 101 | <listitem>
|
---|
[2256873] | 102 | <para>Logs the messages that system programs offer for logging</para>
|
---|
[3ed279f] | 103 | <indexterm zone="ch-system-sysklogd syslogd"><primary sortas="b-syslogd">syslogd</primary></indexterm>
|
---|
[c6cb3aa] | 104 | </listitem>
|
---|
| 105 | </varlistentry>
|
---|
| 106 | </variablelist>
|
---|
[673b0d8] | 107 |
|
---|
| 108 | </sect2>
|
---|
| 109 |
|
---|
| 110 | </sect1>
|
---|
[ef13657] | 111 |
|
---|