From owner-freebsd-questions@FreeBSD.ORG Mon May 16 14:21:18 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6A8C16A4CE for ; Mon, 16 May 2005 14:21:18 +0000 (GMT) Received: from charm.uugrn.org (charm.uugrn.org [195.226.127.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9401643D9F for ; Mon, 16 May 2005 14:21:17 +0000 (GMT) (envelope-from Raphael.Becker@gmx.de) Received: from daemon.local.net (rabe@localhost.uugrn.org [127.0.0.1]) by charm.uugrn.org (8.13.0/8.13.0) with ESMTP id j4GELZM9011500 for ; Mon, 16 May 2005 16:21:35 +0200 (CEST) Received: from daemon.local.net (rabe@localhost.local.net [127.0.0.1]) by daemon.local.net (8.13.3/8.13.1) with ESMTP id j4GELNaa036549 for ; Mon, 16 May 2005 16:21:23 +0200 (CEST) (envelope-from Raphael.Becker@gmx.de) Received: (from rabe@localhost) by daemon.local.net (8.13.3/8.13.1/Submit) id j4GELMa9036548 for freebsd-questions@freebsd.org; Mon, 16 May 2005 16:21:22 +0200 (CEST) (envelope-from Raphael.Becker@gmx.de) X-Authentication-Warning: daemon.local.net: rabe set sender to Raphael.Becker@gmx.de using -f Date: Mon, 16 May 2005 16:21:22 +0200 From: "Raphael H. Becker" To: freebsd-questions@freebsd.org Message-ID: <20050516142122.GB35991@local.net> References: <20050513065243.GD7977@orthanc.st.hmc.edu> <200505131308.50805.ian@codepad.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="f2QGlHpHGjS2mn6Y" Content-Disposition: inline In-Reply-To: <200505131308.50805.ian@codepad.net> User-Agent: Mutt/1.4.2.1i Subject: Re: Shutting down [k|g]dm for a short while? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2005 14:21:18 -0000 --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--