source: chapter06/sysklogd.xml@ 0e9a9e2

6.0
Last change on this file since 0e9a9e2 was 0e9a9e2, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Fixed some tags and validation issues.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/testing/BOOK@4156 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.5 KB
Line 
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" 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
14as 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, and 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
32issues 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
37this sometimes confuses the <command>sysklogd</command> initscript.
38Fix 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>Install the package:</para>
47
48<screen><userinput>make install</userinput></screen>
49
50<beginpage/>
51</sect2>
52
53
54<sect2 id="conf-sysklogd" role="configuration"><title>Configuring Sysklogd</title>
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>
60
61<para>Create a new file <filename>/etc/syslog.conf</filename> by running the
62following:</para>
63
64<screen><userinput>cat &gt; /etc/syslog.conf &lt;&lt; "EOF"
65<literal># Begin /etc/syslog.conf
66
67auth,authpriv.* -/var/log/auth.log
68*.*;auth,authpriv.none -/var/log/sys.log
69daemon.* -/var/log/daemon.log
70kern.* -/var/log/kern.log
71mail.* -/var/log/mail.log
72user.* -/var/log/user.log
73*.emerg *
74
75# End /etc/syslog.conf</literal>
76EOF</userinput></screen>
77
78</sect2>
79
80
81<sect2 id="contents-sysklogd" role="content"><title>Contents of Sysklogd</title>
82
83<segmentedlist>
84<segtitle>Installed programs</segtitle>
85<seglistitem><seg>klogd and syslogd</seg></seglistitem>
86</segmentedlist>
87
88<variablelist><bridgehead renderas="sect3">Short descriptions</bridgehead>
89<?dbfo list-presentation="list"?>
90
91<varlistentry id="klogd">
92<term><command>klogd</command></term>
93<listitem>
94<para>a system daemon for intercepting and logging kernel messages.</para>
95<indexterm zone="ch-system-sysklogd klogd"><primary sortas="b-klogd">klogd</primary></indexterm>
96</listitem>
97</varlistentry>
98
99<varlistentry id="syslogd">
100<term><command>syslogd</command></term>
101<listitem>
102<para>logs the messages that system programs offer for logging. Every
103logged message contains at least a date stamp and a hostname, and
104normally the program's name too depending on how
105<quote>trusting</quote> the logging daemon is told to be.</para>
106<indexterm zone="ch-system-sysklogd syslogd"><primary sortas="b-syslogd">syslogd</primary></indexterm>
107</listitem>
108</varlistentry>
109</variablelist>
110
111</sect2>
112
113</sect1>
114
Note: See TracBrowser for help on using the repository browser.