aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06
diff options
context:
space:
mode:
authorJeremy Huntwork <jhuntwork@linuxfromscratch.org>2005-03-30 17:31:03 +0000
committerJeremy Huntwork <jhuntwork@linuxfromscratch.org>2005-03-30 17:31:03 +0000
commit90d417240fc72c7d7fb996af2f3bf96450b9cb2f (patch)
treecbaa94d2acc81877fc322edcfb14e1751467d46f /chapter06
parentc864f2906123c247960d40cf00b6883d438f5791 (diff)
Copied over old sysklogd files in preparation of return to sysklogd over syslog-ng
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4814 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06')
-rw-r--r--chapter06/sysklogd.xml111
1 files changed, 111 insertions, 0 deletions
diff --git a/chapter06/sysklogd.xml b/chapter06/sysklogd.xml
new file mode 100644
index 000000000..6e659e204
--- /dev/null
+++ b/chapter06/sysklogd.xml
@@ -0,0 +1,111 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
+ <!ENTITY % general-entities SYSTEM "../general.ent">
+ %general-entities;
+]>
+<sect1 id="ch-system-sysklogd" xreflabel="Sysklogd" role="wrap">
+<title>Sysklogd-&sysklogd-version;</title>
+<?dbhtml filename="sysklogd.html"?>
+
+<indexterm zone="ch-system-sysklogd"><primary sortas="a-Sysklogd">Sysklogd</primary></indexterm>
+
+<sect2 role="package"><title/>
+<para>The Sysklogd package contains programs for logging system messages, such
+as those given by the kernel when unusual things happen.</para>
+
+<segmentedlist>
+<segtitle>&buildtime;</segtitle>
+<segtitle>&diskspace;</segtitle>
+<seglistitem><seg>0.1 SBU</seg><seg>0.5 MB</seg></seglistitem>
+</segmentedlist>
+
+<segmentedlist>
+<segtitle>Sysklogd installation depends on</segtitle>
+<seglistitem><seg>Binutils, Coreutils, GCC, Glibc, Make</seg></seglistitem>
+</segmentedlist>
+</sect2>
+
+<sect2 role="installation">
+<title>Installation of Sysklogd</title>
+
+<para>Sysklogd has issues with the Linux 2.6 kernel series - fix these isues
+by applying the following patch:</para>
+
+<screen><userinput>patch -Np1 -i ../sysklogd-&sysklogd-version;-kernel_headers-1.patch</userinput></screen>
+
+<para>There is also a race condition in the signal handling logic, and this
+sometimes confuses the <command>sysklogd</command> initscript.
+Fix this bug by applying another patch:</para>
+
+<screen><userinput>patch -Np1 -i ../sysklogd-&sysklogd-version;-signal-1.patch</userinput></screen>
+
+<para>Compile Sysklogd:</para>
+
+<screen><userinput>make</userinput></screen>
+
+<para>Now install it:</para>
+
+<screen><userinput>make install</userinput></screen>
+
+</sect2>
+
+
+<sect2 id="conf-sysklogd" role="configuration"><title>Configuring Sysklogd</title>
+<indexterm zone="conf-sysklogd">
+<primary sortas="a-Sysklogd">Sysklogd</primary>
+<secondary>configuring</secondary></indexterm>
+
+<indexterm zone="conf-sysklogd"><primary sortas="e-/etc/syslog.conf">/etc/syslog.conf</primary></indexterm>
+
+<para>Create a new <filename>/etc/syslog.conf</filename> file by running the
+following:</para>
+
+<screen><userinput>cat &gt; /etc/syslog.conf &lt;&lt; "EOF"
+# Begin /etc/syslog.conf
+
+auth,authpriv.* -/var/log/auth.log
+*.*;auth,authpriv.none -/var/log/sys.log
+daemon.* -/var/log/daemon.log
+kern.* -/var/log/kern.log
+mail.* -/var/log/mail.log
+user.* -/var/log/user.log
+*.emerg *
+
+# End /etc/syslog.conf
+EOF</userinput></screen>
+
+</sect2>
+
+
+<sect2 id="contents-sysklogd" role="content"><title>Contents of Sysklogd</title>
+
+<segmentedlist>
+<segtitle>Installed programs</segtitle>
+<seglistitem><seg>klogd and syslogd</seg></seglistitem>
+</segmentedlist>
+
+<variablelist><title>Short descriptions</title>
+
+<varlistentry id="klogd">
+<term><command>klogd</command></term>
+<listitem>
+<indexterm zone="ch-system-sysklogd klogd"><primary sortas="b-klogd">klogd</primary></indexterm>
+<para>is a system daemon for intercepting and logging kernel messages.</para>
+</listitem>
+</varlistentry>
+
+<varlistentry id="syslogd">
+<term><command>syslogd</command></term>
+<listitem>
+<indexterm zone="ch-system-sysklogd syslogd"><primary sortas="b-syslogd">syslogd</primary></indexterm>
+<para>logs the messages that system programs
+offer for logging. Every logged message contains at least a date stamp and a
+hostname, and normally the program's name too, but that depends on how
+trusting the logging daemon is told to be.</para>
+</listitem>
+</varlistentry>
+</variablelist>
+
+</sect2>
+
+</sect1>