Re: How does the klogd work?
Tom Pollerman <[email protected]>
| Newsgroups | gmane.linux.redhat.release.guinness |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 09 Oct 2002 14:47:13 +0800 Tom Si <[email protected]> wrote: > Hi, > I want add the function to save system messages on one of mini linux > > system, so I add the klogd to the /sbin, and run the " klogd -f > ./log" after the shell is work. but the log file always is null. > Why? if I need add the syslogd to the system? > > adding, I have check the /proc/kmsg its length is 0 too. Do I need > add something to my kernel? > > . > Both syslogd and klogd are in the sysklogd.rpm package. You can check if you have it installed with: rpm -q sysklogd Although klogd can be run as a standalone daemon, it is run together with syslogd and the kernel messages are logged along with system messages. Where they get logged (normally /var/log/messages) is controlled by the /etc/syslog.conf file. You may edit this, if you wish. To have syslogd running when you start your computer, as root, type: setup <enter> select 'System services' and the 'syslog' using the <up><down> arrow keys and the <space> key. Then highlight 'ok' using the <tab> key, and quit. When you restart the computer, both syslogd and klogd should be running. You can see all the running processes with: ps aux | less Best, Tom