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

Last change on this file since cc80301 was bf38bf6, checked in by Joe Ciccone <jciccone@…>, 18 years ago

Updated syslog.conf to include messages.log for udev utilities

  • Property mode set to 100644
File size: 3.9 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.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 chaning the owner of the installed man files and prevents install from trying to strip the installed binaries.</para>
34
35<screen os="s2"><userinput>cp Makefile{,.orig}
36sed -e 's/-o ${MAN_USER} -g ${MAN_GROUP}//' \
37 -e 's/500 -s/500/' Makefile.orig &gt; Makefile</userinput></screen>
38
39 <para os="c">Compile the package:</para>
40
41<screen os="d"><userinput>make CC="${CC}"</userinput></screen>
42
43 <para os="f">Install the package:</para>
44
45<screen os="g"><userinput>make prefix=${CLFS} install</userinput></screen>
46
47 </sect2>
48
49 <sect2 id="conf-sysklogd" role="configuration">
50 <title>Configuring Sysklogd</title>
51
52 <indexterm zone="conf-sysklogd">
53 <primary sortas="a-Sysklogd">Sysklogd</primary>
54 <secondary>configuring</secondary></indexterm>
55
56 <indexterm zone="conf-sysklogd">
57 <primary sortas="e-/etc/syslog.conf">/etc/syslog.conf</primary>
58 </indexterm>
59
60 <para>Create a new <filename>/etc/syslog.conf</filename> file by running
61 the following:</para>
62
63<screen><userinput>cat &gt; ${CLFS}/etc/syslog.conf &lt;&lt; "EOF"
64<literal># Begin /etc/syslog.conf
65
66auth,authpriv.* -/var/log/auth.log
67*.*;auth,authpriv.none -/var/log/sys.log
68daemon.* -/var/log/daemon.log
69kern.* -/var/log/kern.log
70mail.* -/var/log/mail.log
71user.* -/var/log/user.log
72*.=info;*.=notice;*.=warn;
73auth,authpriv.none;
74cron,daemon.none;
75mail,news.none -/var/log/messages.log
76
77*.emerg *
78
79# log the bootscript output:
80local2.* -/var/log/boot.log
81
82# End /etc/syslog.conf</literal>
83EOF</userinput></screen>
84
85 </sect2>
86
87 <sect2 id="contents-sysklogd" role="content">
88 <title>Contents of Sysklogd</title>
89
90 <segmentedlist>
91 <segtitle>Installed programs</segtitle>
92
93 <seglistitem>
94 <seg>klogd and syslogd</seg>
95 </seglistitem>
96 </segmentedlist>
97
98 <variablelist>
99 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
100 <?dbfo list-presentation="list"?>
101 <?dbhtml list-presentation="table"?>
102
103 <varlistentry id="klogd">
104 <term><command>klogd</command></term>
105 <listitem>
106 <para>A system daemon for intercepting and logging kernel
107 messages</para>
108 <indexterm zone="ch-system-sysklogd klogd">
109 <primary sortas="b-klogd">klogd</primary>
110 </indexterm>
111 </listitem>
112 </varlistentry>
113
114 <varlistentry id="syslogd">
115 <term><command>syslogd</command></term>
116 <listitem>
117 <para>Logs the messages that system programs offer for logging.
118 Every logged message contains at least a date stamp and a hostname,
119 and normally the program's name too, but that depends on how
120 trusting the logging daemon is told to be.</para>
121 <indexterm zone="ch-system-sysklogd syslogd">
122 <primary sortas="b-syslogd">syslogd</primary>
123 </indexterm>
124 </listitem>
125 </varlistentry>
126
127 </variablelist>
128
129 </sect2>
130
131</sect1>
Note: See TracBrowser for help on using the repository browser.