source: chapter06/sysklogd.xml@ 9cdcfb1

Last change on this file since 9cdcfb1 was 9cdcfb1, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Merged r7489 from trunk to udev_update branch.

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