On Fri, May 13, 2005 at 01:08:50PM +0100, Xian wrote:
> You can edit /etc/ttys to turn off the appropriate tty, then SIGHUP init (pid 
> 1).
> You might have to kill [k|g]dm afterwards as well.

You need killall kdm 
Killing the X-Session using Ctrl-Alt-Backspace might not kill kdm.
 
> Then when your done, enable the tty, and SIGHUP init again.

Right. 

Using `init q� is the more cleaner way. 

init(8):

SYNOPSIS
     init
     init [0 | 1 | 6 | c | q]
[...]
     Run-level    Signal     Action
     0            SIGUSR2    Halt and turn the power off
     1            SIGTERM    Go to single-user mode
     6            SIGINT     Reboot the machine
     c            SIGTSTP    Block further logins
     q            SIGHUP     Rescan the ttys(5) file
 
This should also be documented in /etc/ttys.

Regards
-- 
Raphael Becker                                    http://rabe.uugrn.org/
                      http://schnitzelmitkartoffelsalat.und.rahmspin.at/
.........|.........|.........|.........|.........|.........|.........|..

Attachment: pgpYR8o02jVSr.pgp
Description: PGP signature

Reply via email to