All of lore.kernel.org
 help / color / mirror / Atom feed
* signal to PID 1 from serial console like KeyboardRequest or CAD
@ 2011-03-11 13:43 Jeremy Jackson
  0 siblings, 0 replies; 8+ messages in thread
From: Jeremy Jackson @ 2011-03-11 13:43 UTC (permalink / raw)
  To: linux-console

Hi,

I ran into a problem recently on a Linux server with a remote serial 
console.  /sbin/init (actually Upstart) was in a state where nothing 
(useful) was running.  I had to power cycle the machine to get back to 
the boot prompt.  This has the side-effect of triggering raid rebuilds.

It would be nice to have what Ctrl-Alt-Del does at the VGA console with 
PS/2 or USB keyboard. This sends a SIGINT to PID 1, and most distros 
have this set to do "shutdown -r now" which attempts a clean reboot.

Once upon a time there was KeyboardRequest, which would send a SIGWINCH 
to PID 1 (when pressing Alt-UP_arrow?).  I don't see any sign of this 
feature in Linux 2.6.32 though.

Looking at the Sysrq handlers in the kernel I don't see any keystrokes 
that send SIGINT to PID 1 either.

So, I'm wondering if it makes sense to add a Sysrq key to send a signal 
to PID1 ?

-- 
Coplanar Networks
http://www.coplanar.net
(519)489-4903

^ permalink raw reply	[flat|nested] 8+ messages in thread
* signal to PID 1 from serial console like KeyboardRequest or CAD
@ 2011-03-25 17:41 Jeremy Jackson
  2011-03-31 19:57 ` Randy Dunlap
  0 siblings, 1 reply; 8+ messages in thread
From: Jeremy Jackson @ 2011-03-25 17:41 UTC (permalink / raw)
  To: linux-kernel

Hi,

Sent to linux-console with no reply for over a week...

I ran into a problem recently on a Linux server with a remote serial 
console.  /sbin/init (actually Upstart) was in a state where nothing 
(useful) was running.  I had to power cycle the machine to get back to 
the boot prompt.  This has the side-effect of triggering raid rebuilds.

It would be nice to have what Ctrl-Alt-Del does at the VGA console with 
PS/2 or USB keyboard. This sends a SIGINT to PID 1, and most distros 
have this set to do "shutdown -r now" which attempts a clean reboot.

Once upon a time there was KeyboardRequest, which would send a SIGWINCH 
to PID 1 (when pressing Alt-UP_arrow?).  I don't see any sign of this 
feature in Linux 2.6.32 though.

Looking at the Sysrq handlers in the kernel I don't see any keystrokes 
that send SIGINT to PID 1 either.

So, I'm wondering if it makes sense to add a Sysrq key to send a signal 
to PID1 ?

-- 
Coplanar Networks
http://www.coplanar.net
(519)489-4903

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-04-01 15:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-11 13:43 signal to PID 1 from serial console like KeyboardRequest or CAD Jeremy Jackson
  -- strict thread matches above, loose matches on Subject: below --
2011-03-25 17:41 Jeremy Jackson
2011-03-31 19:57 ` Randy Dunlap
2011-04-01  5:37   ` Dmitry Torokhov
2011-04-01 15:39     ` Jeremy Jackson
2011-04-01 15:42       ` Randy Dunlap
2011-04-01 15:47         ` Jeremy Jackson
2011-04-01 15:59           ` Dmitry Torokhov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.