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

Re: odd -- /var/log/messages and tail in tty3 not working



Hi. sorry too late to responding. Maybe one of you has already
pointed out what I found today. But I don't have read all the mails
in this list since Saturday's night. So anyway I'll report this.

  # I am away from my home now.

In article <[🔎] 20000118185934.B272@visi.net>,
  at Tue, 18 Jan 2000 18:59:34 -0500,
    on Re: odd -- /var/log/messages and tail in tty3 not working,
 Ben Collins <bcollins@debian.org> writes:

> On Tue, Jan 18, 2000 at 04:16:41PM -0700, Erik Andersen wrote:
> > On Tue Jan 18, 2000 at 06:09:20PM -0500, Adam Di Carlo wrote:
> > > 
> > > I noted that /var/log/messages on my yesterday build was mode 000.
> > > What's the problem here?  Syslog changed? 

> I noticed this too. Weird part is that while testing other things, if
> busybox's init kills everything (like a reboot), but then re-exec's
> itself, it all works fine. I think it is initializing the consoles too
> late in the startup process, and I have started to track this down with
> that in mind.

I add "closelog()" after calling "syslog()" in init.c, then logger 
works again. Try this:

--- init.c.orig Fri Jan 21 14:21:06 2000
+++ init.c      Sat Jan 22 14:45:36 2000
@@ -148,6 +148,7 @@
        vsnprintf(msg, sizeof(msg), fmt, arguments);
        va_end(arguments);
        syslog(LOG_DAEMON|LOG_NOTICE, msg);
+       closelog();
     }

-- 
  Taketoshi Sano: <sano@debian.org>,<sano@debian.or.jp>,<kgh12351@nifty.ne.jp>


Reply to: