source: clfs-sysroot/BOOK/final-system/common/sysklogd.xml@ 9c69069

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

Updated CLFS-Sysroot book sources to use DocBook-XML DTD 4.5.

  • 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.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-sysklogd" xreflabel="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 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Sysklogd</title>
27
28 <para os="a">The following patch fixes various issues, including a
29 problem building Sysklogd with Linux 2.6 series kernels:</para>
30
31<screen os="b"><userinput>patch -Np1 -i ../&sysklogd-fixes-patch;</userinput></screen>
32
33 <para os="s1">The following sed prevents changing the owner of the
34 installed man pages and prevents install from trying to strip the
35 installed binaries:</para>
36
37<screen os="s2"><userinput>cp Makefile{,.orig}
38sed -e 's/-o ${MAN_USER} -g ${MAN_GROUP}//' \
39 -e 's/500 -s/500/' Makefile.orig &gt; Makefile</userinput></screen>
40
41 <para os="c">Compile the package:</para>
42
43<screen os="d"><userinput>make CC="${CC}"</userinput></screen>
44
45 <para os="f">Install the package:</para>
46
47<screen os="g"><userinput>make prefix=${CLFS} install</userinput></screen>
48
49 </sect2>
50
51 <sect2 id="conf-sysklogd" role="configuration">
52 <title>Configuring Sysklogd</title>
53
54 <indexterm zone="conf-sysklogd">
55 <primary sortas="a-Sysklogd">Sysklogd</primary>
56 <secondary>configuring</secondary></indexterm>
57
58 <indexterm zone="conf-sysklogd">
59 <primary sortas="e-/etc/syslog.conf">/etc/syslog.conf</primary>
60 </indexterm>
61
62 <para>Create a new <filename>${CLFS}/etc/syslog.conf</filename> file by running
63 the following:</para>
64
65<screen><userinput>cat &gt; ${CLFS}/etc/syslog.conf &lt;&lt; "EOF"
66# 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*.info;mail.none;authpriv.none;cron.none -/var/log/messages
75*.emerg *
76
77# log the bootscript output:
78local2.* -/var/log/boot.log
79
80# End /etc/syslog.conf
81EOF</userinput></screen>
82
83 </sect2>
84
85 <sect2 id="contents-sysklogd" role="content">
86 <title>Contents of Sysklogd</title>
87
88 <segmentedlist>
89 <segtitle>Installed programs</segtitle>
90
91 <seglistitem>
92 <seg>klogd and syslogd</seg>
93 </seglistitem>
94 </segmentedlist>
95
96 <variablelist>
97 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
98 <?dbfo list-presentation="list"?>
99 <?dbhtml list-presentation="table"?>
100
101 <varlistentry id="klogd">
102 <term><command>klogd</command></term>
103 <listitem>
104 <para>A system daemon for intercepting and logging kernel
105 messages</para>
106 <indexterm zone="ch-system-sysklogd klogd">
107 <primary sortas="b-klogd">klogd</primary>
108 </indexterm>
109 </listitem>
110 </varlistentry>
111
112 <varlistentry id="syslogd">
113 <term><command>syslogd</command></term>
114 <listitem>
115 <para>Logs the messages that system programs offer for logging.
116 Every logged message contains at least a date stamp and a hostname,
117 and normally the program's name too, but that depends on how
118 trusting the logging daemon is told to be.</para>
119 <indexterm zone="ch-system-sysklogd syslogd">
120 <primary sortas="b-syslogd">syslogd</primary>
121 </indexterm>
122 </listitem>
123 </varlistentry>
124
125 </variablelist>
126
127 </sect2>
128
129</sect1>
Note: See TracBrowser for help on using the repository browser.