Shutting down [k|g]dm for a short while?

Raphael H. Becker Raphael.Becker at gmx.de
Mon May 16 07:21:18 PDT 2005


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/
.........|.........|.........|.........|.........|.........|.........|..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050516/617c87c9/attachment.bin


More information about the freebsd-questions mailing list