source: chapter06/sysklogd.xml@ a3e320b9

Last change on this file since a3e320b9 was c11bcb7, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Merged r8366 from trunk.

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

  • Property mode set to 100644
File size: 4.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-sysklogd" role="wrap">
9 <?dbhtml filename="sysklogd.html"?>
10
11 <sect1info condition="script">
12 <productname>sysklogd</productname>
13 <productnumber>&sysklogd-version;</productnumber>
14 <address>&sysklogd-url;</address>
15 </sect1info>
16
17 <title>Sysklogd-&sysklogd-version;</title>
18
19 <indexterm zone="ch-system-sysklogd">
20 <primary sortas="a-Sysklogd">Sysklogd</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Sysklogd package contains programs for logging system messages,
27 such as those given by the kernel when unusual things happen.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&sysklogd-ch6-sbu;</seg>
35 <seg>&sysklogd-ch6-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Sysklogd</title>
43
44 <para>The following patch fixes various issues, including a problem building
45 Sysklogd with Linux 2.6 series kernels:</para>
46
47<screen><userinput>patch -Np1 -i ../&sysklogd-fixes-patch;</userinput></screen>
48
49 <para>The following patch makes sysklogd treat bytes in the 0x80--0x9f range
50 literally in the messages being logged, instead of replacing them with octal
51 codes. Unpatched sysklogd would damage messages in the UTF-8 encoding:</para>
52
53<screen><userinput>patch -Np1 -i ../&sysklogd-8bit-patch;</userinput></screen>
54
55 <para>Compile the package:</para>
56
57<screen><userinput>make</userinput></screen>
58
59 <para>This package does not come with a test suite.</para>
60
61 <para>Install the package:</para>
62
63<screen><userinput>make install</userinput></screen>
64
65 </sect2>
66
67 <sect2 id="conf-sysklogd" role="configuration">
68 <title>Configuring Sysklogd</title>
69
70 <indexterm zone="conf-sysklogd">
71 <primary sortas="a-Sysklogd">Sysklogd</primary>
72 <secondary>configuring</secondary>
73 </indexterm>
74
75 <indexterm zone="conf-sysklogd">
76 <primary sortas="e-/etc/syslog.conf">/etc/syslog.conf</primary>
77 </indexterm>
78
79 <para>Create a new <filename>/etc/syslog.conf</filename> file by running the
80 following:</para>
81
82<screen><userinput>cat &gt; /etc/syslog.conf &lt;&lt; "EOF"
83<literal># Begin /etc/syslog.conf
84
85auth,authpriv.* -/var/log/auth.log
86*.*;auth,authpriv.none -/var/log/sys.log
87daemon.* -/var/log/daemon.log
88kern.* -/var/log/kern.log
89mail.* -/var/log/mail.log
90user.* -/var/log/user.log
91*.emerg *
92
93# End /etc/syslog.conf</literal>
94EOF</userinput></screen>
95
96 </sect2>
97
98 <sect2 id="contents-sysklogd" role="content">
99 <title>Contents of Sysklogd</title>
100
101 <segmentedlist>
102 <segtitle>Installed programs</segtitle>
103
104 <seglistitem>
105 <seg>klogd and syslogd</seg>
106 </seglistitem>
107 </segmentedlist>
108
109 <variablelist>
110 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
111 <?dbfo list-presentation="list"?>
112 <?dbhtml list-presentation="table"?>
113
114 <varlistentry id="klogd">
115 <term><command>klogd</command></term>
116 <listitem>
117 <para>A system daemon for intercepting and logging kernel messages</para>
118 <indexterm zone="ch-system-sysklogd klogd">
119 <primary sortas="b-klogd">klogd</primary>
120 </indexterm>
121 </listitem>
122 </varlistentry>
123
124 <varlistentry id="syslogd">
125 <term><command>syslogd</command></term>
126 <listitem>
127 <para>Logs the messages that system programs offer for logging. Every
128 logged message contains at least a date stamp and a hostname, and
129 normally the program's name too, but that depends on how trusting the
130 logging daemon is told to be</para>
131 <indexterm zone="ch-system-sysklogd syslogd">
132 <primary sortas="b-syslogd">syslogd</primary>
133 </indexterm>
134 </listitem>
135 </varlistentry>
136
137 </variablelist>
138
139 </sect2>
140
141</sect1>
Note: See TracBrowser for help on using the repository browser.