source: chapter06/sysklogd.xml@ 688f954

Last change on this file since 688f954 was fa21b3d, checked in by Jeremy Huntwork <jhuntwork@…>, 18 years ago

Initial support of UTF-8. Thanks Alexander Patrakov.

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

  • Property mode set to 100644
File size: 3.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/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
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>704 KB</seg></seglistitem>
20</segmentedlist>
21
22<segmentedlist>
23<segtitle>&dependencies;</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>The following patch fixes various issues, including a problem building
32Sysklogd with Linux 2.6 series kernels</para>
33
34<screen><userinput>patch -Np1 -i ../&sysklogd-fixes-patch;</userinput></screen>
35
36<para>The following patch makes sysklogd treat bytes in the 0x80--0x9f range
37literally in the messages being logged, instead of replacing them with octal
38codes. Unpatched sysklogd would damage messages in the UTF-8 encoding.</para>
39
40<screen><userinput>patch -Np1 -i ../&sysklogd-8bit-patch;</userinput></screen>
41
42<para>Compile the package:</para>
43
44<screen><userinput>make</userinput></screen>
45
46<para>This package does not come with a test suite.</para>
47
48<para>Install the package:</para>
49
50<screen><userinput>make install</userinput></screen>
51
52</sect2>
53
54
55<sect2 id="conf-sysklogd" role="configuration"><title>Configuring Sysklogd</title>
56<indexterm zone="conf-sysklogd">
57<primary sortas="a-Sysklogd">Sysklogd</primary>
58<secondary>configuring</secondary></indexterm>
59
60<indexterm zone="conf-sysklogd"><primary sortas="e-/etc/syslog.conf">/etc/syslog.conf</primary></indexterm>
61
62<para>Create a new <filename>/etc/syslog.conf</filename> file by running the
63following:</para>
64
65<screen><userinput>cat &gt; /etc/syslog.conf &lt;&lt; "EOF"
66<literal># Begin /etc/syslog.conf
67
68auth,authpriv.* -/var/log/auth.log
69*.*;auth,authpriv.none -/var/log/sys.log
70daemon.* -/var/log/daemon.log
71kern.* -/var/log/kern.log
72mail.* -/var/log/mail.log
73user.* -/var/log/user.log
74*.emerg *
75
76# log the bootscript output:
77local2.* -/var/log/boot.log
78
79# End /etc/syslog.conf</literal>
80EOF</userinput></screen>
81
82</sect2>
83
84
85<sect2 id="contents-sysklogd" role="content"><title>Contents of Sysklogd</title>
86
87<segmentedlist>
88<segtitle>Installed programs</segtitle>
89<seglistitem><seg>klogd and syslogd</seg></seglistitem>
90</segmentedlist>
91
92<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
93<?dbfo list-presentation="list"?>
94<?dbhtml list-presentation="table"?>
95
96<varlistentry id="klogd">
97<term><command>klogd</command></term>
98<listitem>
99<para>A system daemon for intercepting and logging kernel messages</para>
100<indexterm zone="ch-system-sysklogd klogd"><primary sortas="b-klogd">klogd</primary></indexterm>
101</listitem>
102</varlistentry>
103
104<varlistentry id="syslogd">
105<term><command>syslogd</command></term>
106<listitem>
107<para>Logs the messages that system programs offer for logging. Every logged
108message contains at least a date stamp and a hostname, and normally the
109program's name too, but that depends on how trusting the logging daemon is told
110to be</para>
111<indexterm zone="ch-system-sysklogd syslogd"><primary sortas="b-syslogd">syslogd</primary></indexterm>
112</listitem>
113</varlistentry>
114</variablelist>
115
116</sect2>
117
118</sect1>
Note: See TracBrowser for help on using the repository browser.