Skip site navigation (1)Skip section navigation (2)
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

--f2QGlHpHGjS2mn6Y
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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=20
> 1).
> You might have to kill [k|g]dm afterwards as well.

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

Right.=20

Using `init q=B4 is the more cleaner way.=20

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
=20
This should also be documented in /etc/ttys.

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

--f2QGlHpHGjS2mn6Y
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCiKxinNo+exDKny0RAosVAJwPl/5wVvBPt5eUnUavAdyLw4Vc+ACdFhxa
Vrvt+V3o+xjtz68plwFNhZo=
=DHX7
-----END PGP SIGNATURE-----

--f2QGlHpHGjS2mn6Y--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050516142122.GB35991>