[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Where is klogd instructed to dump the ring buffer into syslog?



On Mon, 5 Jul 1999 15:25:44 +0100, you wrote:
>Quoting Marc Haber (Marc.Haber-usenet@gmx.de):
>> On Sun, 4 Jul 1999 13:14:46 -0700 (PDT), you wrote:
>> >On Sun, 4 Jul 1999, Marc Haber wrote:
>> >> I am curious. Where do I find the code that does this on Debian? I
>> >> grepped for klogd in /etc but did not find explicit code to do so.
>> >
>> >/etc/init.d/sysklogd
>> 
>> I fail to see where there is data copied from klogd to syslog
>> explicitly. Which line does it?
>
>Er, klogd does it. That's what klogd does (man klogd).

I am well able to read manpages, thank you. Occasionally, I even do
so.

>What you've stumbled across in some other distribution
>is the use of a one-shot (-o) emptying of the buffer to
>an explicitly named file (-f filename) for some purpose.

Today, I play a little bit with the SuSE box.

It looks like klogd on startup reads everything that is already in the
kernel ring buffer and dumps it off to syslog before going to its
normal operation mode. This is not mentioned in the man page but is a
Good Thing IMO. It could be possible that klogd doesn't care about
messages that are already there when it comes up. But klogd is smart
and does what I feel appropriate.

SuSE prevents this from happening by using klogd -o to dump the
information into a separate file. This is a Stupid Thing IMO.

Case closed ;-)

Greetings
Marc

-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29


Reply to: