public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tomasz Chmielewski <mangoo@wpkg.org>
To: linux-kernel@vger.kernel.org
Subject: change kernel logging (console=ttyS0) without reboot?
Date: Fri, 17 Jun 2011 13:42:25 +0200	[thread overview]
Message-ID: <4DFB3DA1.7060603@wpkg.org> (raw)

Generally, most production systems don't like to be restarted unnecessarily.

I was wondering if it's possible to change kernel logging without a restart?

Say, I connected a serial cable to the server, but kernel was not booted 
with anything like console=ttyS0,19200 in its command line. So anything 
produced by the kernel will not show up on ttyS0.


Can I still somehow make the kernel to log to ttyS0, without restarting 
it (I can make syslog do it, but let's assume the syslog crashed and I'm 
mostly interested in catching a kernel oops/panic etc.)?



-- 
Tomasz Chmielewski
http://wpkg.org

                 reply	other threads:[~2011-06-17 11:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DFB3DA1.7060603@wpkg.org \
    --to=mangoo@wpkg.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox