Date: Mon, 16 May 2005 16:21:22 +0200 From: "Raphael H. Becker" <Raphael.Becker@gmx.de> To: freebsd-questions@freebsd.org Subject: Re: Shutting down [k|g]dm for a short while? Message-ID: <20050516142122.GB35991@local.net> In-Reply-To: <200505131308.50805.ian@codepad.net> References: <20050513065243.GD7977@orthanc.st.hmc.edu> <200505131308.50805.ian@codepad.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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 #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)
iD8DBQFCiKxinNo+exDKny0RAosVAJwPl/5wVvBPt5eUnUavAdyLw4Vc+ACdFhxa
Vrvt+V3o+xjtz68plwFNhZo=
=DHX7
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050516142122.GB35991>
