SUMMARY: Change shortcut for rebooting server (inittab, ctlaltdel )

Meier Adrian <[email protected]> Thu, 13 May 2004 12:46:04 +0200
Newsgroups gmane.linux.admin.managers
Message-ID <[email protected]>
Hi again,

I found a solution for my problem: SysRQ (Linux Gazette Article: 
http://linuxgazette.net/issue81/vikas.html and Doc in Kernel Source:
/usr/src/linux-2.4.9-e.3/Documentation/sysrq.txt) 
I can force a reboot by typing alt-sysrq-s alt-sysrq-u alt-sysrq-b :-) Thanx
a lot to Bob Vickers (bobv at cs dot rhul dot ac dot uk)

Correction
Ctlaltdel is a action in inittab and has nothing to do with the binary in
/sbin! => man 5 inittab

It is impossible without modifieing code
You can't easily do that. The "ca" symbol in inittab is special - init will
catch Ctrl-Alt-Del and act according to whatever is specified in
/etc/inittab. Ctrl-Alt-Enter is not regarded as "special" by init, and so
you can't configure init to react to it. You'd have to change the code in
init to achieve what you want - there are numerous other ways to achieve a
simple reboot from the console though - a "reboot" user for example.

Thanx a lot to: Mike Brodbelt (m dot brodbelt at acu dot ac dot uk)

Also thanx to maney at two14 dot net

Best regards
Adrian

> Hi Linuxmanagers,
> 
> Red Hat Enterprise servers have "out of the box" the 
> following entry "ca::ctrlaltdel:/sbin/shutdown -t3 -r now" in 
> inittab. Because of the server are in rack with windows 
> server, we wanna change the shortcut for rebooting the 
> machine (but dont delete it, it is useful when out of memory 
> for example). I saw that ctlaltdel is a binary in /sbin. That 
> means I could place every UNIX commmand in inittab and it 
> would be executed, but this is not what I am looking for.
> 
> When an admin hits CTL ALT ENTER, the server schoud reboot 
> ;-) How can we do this? Optimal would be with Red Hat tools.  
> 
> I will summarize, thanks for helping me
> 
> best regards
> Adrian Meier
>  
> UNIX systems administrator
> T-Systems Switzerland _______________________________________________
> LinuxManagers mailing list - http://www.linuxmanagers.org
> submissions: LinuxManagers-35TzE1X9F6582KRnZfj+bdi2O/[email protected]
> subscribe/unsubscribe: 
> http://www.linuxmanagers.org/mailman/listinfo/> linuxmanagers
> 
_______________________________________________
LinuxManagers mailing list - http://www.linuxmanagers.org
submissions: LinuxManagers-35TzE1X9F6582KRnZfj+bdi2O/[email protected]
subscribe/unsubscribe: http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers