Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Sep 2002 22:13:03 +0200
From:      Ulrich 'Q' Spoerlein <q@uni.de>
To:        freebsd-stable@FreeBSD.ORG
Subject:   Request for alternative CTRL-ATL-DEL behaviour
Message-ID:  <rm2inuojjchggvc5f612rpjak6mo20qh1b@4ax.com>

next in thread | raw e-mail | index | archive | help
hi there,

if this has been already discussed intensivly, please give me a pointer.

I think it would be nice to have a kernel option or sysctl variable which
changes what signal init gets when ctrl-atl-del is pressed.

right now i'm using this patch to have my machines power off instead of
reboot.

--- sys/kern/kern_shutdown.c.orig   Thu May  2 12:45:21 2002
+++ sys/kern/kern_shutdown.c  Thu May  2 12:45:36 2002
@@ -162,7 +162,7 @@
   
   /* Send a signal to init(8) and have it shutdown the world */
   if (initproc != NULL) {
-     psignal(initproc, SIGINT);
+     psignal(initproc, SIGUSR2);
   } else {
      /* No init(8) running, so simply reboot */
      boot(RB_NOSYNC);


man init will show the available signals for init.
if i had a better understanding of C and config and stuff i would have
made a real patch, but i'm unable to do so and hope somebody out there
will implement the necessary steps to have this thing user-controlable.

and while you are at it ;]
since all pre-ATX machines can't power down themselves it would be nice
to have init make three beeps or something when it's ready for power off.
this would be very helpful at machines which don't have a monitor
attached. right now i have to ctrl-alt-del this machine then wait 3-5
minutes and hope everything shut down so i can finally flip the switch.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?rm2inuojjchggvc5f612rpjak6mo20qh1b>