source: chapter06/sysklogd.xml@ e5f8a42

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 12.2 12.2-rc1 6.0 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/loongarch-12.2 xry111/mips64el xry111/multilib xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since e5f8a42 was dc20ac5, checked in by Alexander E. Patrakov <alexander@…>, 20 years ago

Added a patch to fix race condition in sysklogd

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

  • Property mode set to 100644
File size: 3.0 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[3be4d97]6<sect1 id="ch-system-sysklogd" xreflabel="Sysklogd">
[673b0d8]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>
[6370fa6]11
[5888299]12<para>The Sysklogd package contains programs for logging system messages, such
13as those given by the kernel when unusual things happen.</para>
14
[673b0d8]15<screen>&buildtime; 0.1 SBU
16&diskspace; 0.5 MB</screen>
17
18<para>Sysklogd installation depends on: Binutils, Coreutils, GCC, Glibc, Make.</para>
[3554fa3a]19
[73aedd1d]20
21<sect2>
22<title>Installation of Sysklogd</title>
23
[9dfc02f]24<para>Sysklogd has issues with the Linux 2.6 kernel series - fix these isues
25by applying the following patch:</para>
26
[c8ba565]27<screen><userinput>patch -Np1 -i ../sysklogd-&sysklogd-version;-kernel-headers-1.patch</userinput></screen>
[9dfc02f]28
[dc20ac5]29<para>There is also a race condition in the signal handling logic, and this
30sometimes confuses the <command>sysklogd</command> initscript.
31Fix this bug by applying another patch:</para>
32
33<screen><userinput>patch -Np1 -i ../sysklogd-&sysklogd-version;-signal-1.patch</userinput></screen>
34
[73aedd1d]35<para>Compile Sysklogd:</para>
36
37<screen><userinput>make</userinput></screen>
38
[673b0d8]39<para>Now install it:</para>
[73aedd1d]40
41<screen><userinput>make install</userinput></screen>
42
43</sect2>
[5888299]44
[342b176]45
[673b0d8]46<sect2 id="conf-sysklogd"><title>Configuring Sysklogd</title>
47<indexterm zone="conf-sysklogd">
48<primary sortas="a-Sysklogd">Sysklogd</primary>
49<secondary>configuring</secondary></indexterm>
50
51<indexterm zone="conf-sysklogd"><primary sortas="e-/etc/syslog.conf">/etc/syslog.conf</primary></indexterm>
[342b176]52
53<para>Create a new <filename>/etc/syslog.conf</filename> file by running the
54following:</para>
55
56<screen><userinput>cat &gt; /etc/syslog.conf &lt;&lt; "EOF"</userinput>
57# Begin /etc/syslog.conf
58
59auth,authpriv.* -/var/log/auth.log
60*.*;auth,authpriv.none -/var/log/sys.log
61daemon.* -/var/log/daemon.log
62kern.* -/var/log/kern.log
63mail.* -/var/log/mail.log
64user.* -/var/log/user.log
65*.emerg *
66
67# End /etc/syslog.conf
68<userinput>EOF</userinput></screen>
69
70</sect2>
[5888299]71
72
[673b0d8]73<sect2 id="contents-sysklogd"><title>Contents of Sysklogd</title>
74
75<para><emphasis>Installed programs</emphasis>: klogd and syslogd</para>
76
77</sect2>
78
[73aedd1d]79
[673b0d8]80<sect2><title>Short descriptions</title>
81
82<indexterm zone="ch-system-sysklogd klogd"><primary sortas="b-klogd">klogd</primary></indexterm>
83<para id="klogd"><command>klogd</command> is a system daemon for intercepting and
84logging kernel messages.</para>
85
86<indexterm zone="ch-system-sysklogd syslogd"><primary sortas="b-syslogd">syslogd</primary></indexterm>
87<para id="syslogd"><command>syslogd</command> logs the messages that system programs
88offer for logging. Every logged message contains at least a date stamp and a
89hostname, and normally the program's name too, but that depends on how
90trusting the logging daemon is told to be.</para>
91
92</sect2>
93
94
95
96</sect1>
Note: See TracBrowser for help on using the repository browser.