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 |
|
---|
10 | <indexterm zone="ch-system-sysklogd"><primary sortas="a-Sysklogd">Sysklogd</primary></indexterm>
|
---|
11 |
|
---|
12 | <sect2 role="package"><title/>
|
---|
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 |
|
---|
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>
|
---|
21 |
|
---|
22 | <segmentedlist>
|
---|
23 | <segtitle>Sysklogd installation depends on</segtitle>
|
---|
24 | <seglistitem><seg>Binutils, Coreutils, GCC, Glibc, Make</seg></seglistitem>
|
---|
25 | </segmentedlist>
|
---|
26 | </sect2>
|
---|
27 |
|
---|
28 | <sect2 role="installation">
|
---|
29 | <title>Installation of Sysklogd</title>
|
---|
30 |
|
---|
31 | <para>Sysklogd has issues with the Linux 2.6 kernel series - fix these isues
|
---|
32 | by applying the following patch:</para>
|
---|
33 |
|
---|
34 | <screen><userinput>patch -Np1 -i ../sysklogd-&sysklogd-version;-kernel_headers-1.patch</userinput></screen>
|
---|
35 |
|
---|
36 | <para>There is also a race condition in the signal handling logic, and this
|
---|
37 | sometimes confuses the <command>sysklogd</command> initscript.
|
---|
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 |
|
---|
42 | <para>Compile Sysklogd:</para>
|
---|
43 |
|
---|
44 | <screen><userinput>make</userinput></screen>
|
---|
45 |
|
---|
46 | <para>Now install it:</para>
|
---|
47 |
|
---|
48 | <screen><userinput>make install</userinput></screen>
|
---|
49 |
|
---|
50 | </sect2>
|
---|
51 |
|
---|
52 |
|
---|
53 | <sect2 id="conf-sysklogd" role="configuration"><title>Configuring Sysklogd</title>
|
---|
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>
|
---|
59 |
|
---|
60 | <para>Create a new <filename>/etc/syslog.conf</filename> file by running the
|
---|
61 | following:</para>
|
---|
62 |
|
---|
63 | <screen><userinput>cat > /etc/syslog.conf << "EOF"</userinput>
|
---|
64 | # Begin /etc/syslog.conf
|
---|
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 |
|
---|
74 | # End /etc/syslog.conf
|
---|
75 | <userinput>EOF</userinput></screen>
|
---|
76 |
|
---|
77 | </sect2>
|
---|
78 |
|
---|
79 |
|
---|
80 | <sect2 id="contents-sysklogd" role="content"><title>Contents of Sysklogd</title>
|
---|
81 |
|
---|
82 | <segmentedlist>
|
---|
83 | <segtitle>Installed programs</segtitle>
|
---|
84 | <seglistitem><seg>klogd and syslogd</seg></seglistitem>
|
---|
85 | </segmentedlist>
|
---|
86 |
|
---|
87 | <variablelist><title>Short descriptions</title>
|
---|
88 |
|
---|
89 | <varlistentry id="klogd">
|
---|
90 | <term><command>klogd</command></term>
|
---|
91 | <listitem>
|
---|
92 | <indexterm zone="ch-system-sysklogd klogd"><primary sortas="b-klogd">klogd</primary></indexterm>
|
---|
93 | <para>is a system daemon for intercepting and logging kernel messages.</para>
|
---|
94 | </listitem>
|
---|
95 | </varlistentry>
|
---|
96 |
|
---|
97 | <varlistentry id="syslogd">
|
---|
98 | <term><command>syslogd</command></term>
|
---|
99 | <listitem>
|
---|
100 | <indexterm zone="ch-system-sysklogd syslogd"><primary sortas="b-syslogd">syslogd</primary></indexterm>
|
---|
101 | <para>logs the messages that system programs
|
---|
102 | offer for logging. Every logged message contains at least a date stamp and a
|
---|
103 | hostname, and normally the program's name too, but that depends on how
|
---|
104 | trusting the logging daemon is told to be.</para>
|
---|
105 | </listitem>
|
---|
106 | </varlistentry>
|
---|
107 | </variablelist>
|
---|
108 |
|
---|
109 | </sect2>
|
---|
110 |
|
---|
111 | </sect1>
|
---|