6.54. Sysklogd-1.4.1

The Sysklogd package contains programs for logging system messages, such as those given by the kernel when unusual things happen.

Approximate build time: 0.1 SBU

Required disk space: 0.5 MB

Sysklogd installation depends on: Binutils, Coreutils, GCC, Glibc, and Make

6.54.1. Installation of Sysklogd

Sysklogd has issues with the Linux 2.6 kernel series. Fix these issues by applying the following patch:

patch -Np1 -i ../sysklogd-1.4.1-kernel_headers-1.patch

There is also a race condition in the signal handling logic, and this sometimes confuses the sysklogd initscript. Fix this bug by applying another patch:

patch -Np1 -i ../sysklogd-1.4.1-signal-1.patch

Compile the package:

make

Install the package:

make install

6.54.2. Configuring Sysklogd

Create a new file /etc/syslog.conf by running the following:

cat > /etc/syslog.conf << "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

6.54.3. Contents of Sysklogd

Installed programs: klogd and syslogd

Short Descriptions

klogd

A system daemon for intercepting and logging kernel messages

syslogd

Logs the messages that system programs offer for logging