Koozali.org: home of the SME Server

Shut Down per keyboard

Jáder Marasca

Re: Shut Down per keyboard = FOUND!
« Reply #15 on: November 30, 2002, 03:12:10 AM »
I found it! Finally... almost 5 minute search!
"
Rebooting the system
If possible you should make rebooting the system more difficult, by default almost all Linux distributions have ctrl-alt-del enabled so that it reboots the machines. However, unlike Windows, this is not necessary. In Linux you can easily control the behavior of ctrl-alt-del, simply by editing the /etc/inittab file:

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

"

from : http://www.seifried.org/lasg/system/

I presume this will work!!

Guido

Re: Shut Down per keyboard = FOUND!
« Reply #16 on: November 30, 2002, 05:28:38 PM »
Many THX Jáder.  
( 5 Minutes search ?. Damn   :-))  )


Guido

stephen noble

Re: Shut Down per keyboard ::RPM
« Reply #17 on: December 04, 2002, 05:30:43 PM »
>Now ctrl-alt-del should shut the machine down.
>Cheers,
>--Rich

thanks rich, this saves me 20 seconds every other night :-)
and in case your instructions are lost i made it an rpm

http://www.dungog.net/sme/files/

dungog-controlaltdel-shutdown-0.1-1.noarch.rpm

regards
stephen noble

flipp

ctraltdel Shutdown
« Reply #18 on: April 03, 2004, 05:48:33 AM »
I have made the suggested change to the /etc/inittab file and modified the shutdown command to not include -r switch. I assume that this was the only change required.

Is there anything else that needs to be changed or have I insufficiently changed the shutdown comand?

bobk

Shut Down per keyboard
« Reply #19 on: April 04, 2004, 04:25:28 AM »
In SME 6.0 the template numbers have changed. So using Richard Lafferty's HowTo (on the first page of this thread) will not work without changing the template fragment number as shown below. Installing Steven Noble's RPM results in /etc/inittab[48]: duplicate ID field "ca"

On 6.0 you need to modify Richard Lafferty's HowTo  as follows:

Make a custom template for /etc/inittab:

mkdir -p /etc/e-smith/templates-custom/etc/inittab
cd /etc/e-smith/templates-custom/etc/inittab

Start with the existing init ctrlaltdel template:

cp /etc/e-smith.templates/etc/inittab/15ctrlaltdel .

Now edit /etc/e-smith/templates-custom/etc/inittab/15ctrlaltdel in
your favorite text editor, changing "shutdown -t3 -r now" to
"shutdown -t3 -h now".

Then expand the template:

/sbin/e-smith/expand-template /etc/inittab

And tell init to reread it:

telinit q

Now ctrl-alt-del should shut the machine down.