From owner-freebsd-questions@FreeBSD.ORG Fri Mar 21 17:33:26 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5DADA824 for ; Fri, 21 Mar 2014 17:33:26 +0000 (UTC) Received: from forward1l.mail.yandex.net (forward1l.mail.yandex.net [84.201.143.144]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 19593990 for ; Fri, 21 Mar 2014 17:33:25 +0000 (UTC) Received: from smtp14.mail.yandex.net (smtp14.mail.yandex.net [95.108.131.192]) by forward1l.mail.yandex.net (Yandex) with ESMTP id 1FE761520E5D for ; Fri, 21 Mar 2014 21:33:18 +0400 (MSK) Received: from smtp14.mail.yandex.net (localhost [127.0.0.1]) by smtp14.mail.yandex.net (Yandex) with ESMTP id CFDCF1B610EA for ; Fri, 21 Mar 2014 21:33:17 +0400 (MSK) Received: from 46.38.38.120.tel.ru (46.38.38.120.tel.ru [46.38.38.120]) by smtp14.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id QnjakVxsaf-XHPmXMsj; Fri, 21 Mar 2014 21:33:17 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) To: undisclosed-recipients:; X-Yandex-Uniq: ad0f4006-d34c-4fe0-837f-1862eea377a0 Message-ID: <532C77DD.2030504@passap.ru> Date: Fri, 21 Mar 2014 21:33:17 +0400 From: Boris Samorodov Organization: =?UTF-8?B?0JfQkNCeICLQktCQ0KDQoiI=?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 CC: freebsd-questions@freebsd.org Subject: Re: starting xdm at boot on headless box via rc.d script? References: <201403210944.s2L9i06K001182@mech-cluster241.men.bris.ac.uk> <20140321144000.f7c08d2a.freebsd@edvax.de> <532C460D.2080404@passap.ru> In-Reply-To: <532C460D.2080404@passap.ru> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Mar 2014 17:33:26 -0000 The message has been rejected by a spam filter, retrying. 21.03.2014 18:00, Boris Samorodov пишет: > 21.03.2014 17:40, Polytropon пишет: >> On Fri, 21 Mar 2014 02:44:02 -0700 (PDT), Anton Shterenlikht wrote: >>> I've a headless server that accepts >>> connections via XDMCP. I'd like to >>> start xdm in daemon mode without >>> attaching it to any virt. terminal. >>> From the command like I can simply >>> type xdm, but can I do this via >>> /etc/rc.conf, something like xdm_enable=YES? >> >> Currently, there is no rc.d mechanism for starting xdm. >> You could write your own, but you can also use the >> method by which xdm has been started for decades: >> >> Edit /etc/ttys as follows: >> >> ttyv8 "/usr/local/bin/xdm -nodaemon" xterm on secure > [*] >> This line will make xdm start from ttyv8, where >> Alt+PF9 will be the VT your X session is running >> (in case you're switching virtual terminals). >> After the system has finished booting, xdm will >> be started and the switching to the correct virtual >> console, now displaying the X login, will automatically >> happen. > > Seems that it's what Anton wants to avoid: assosiating xdm > with a terminal. > > The desired behavious seems to be the default for xdm > which is changed by the "-nodaemon" option[*]. I'd say that > if that option is removed from /etc/ttys then xdm should > start without (or release) the controlling terminal. > Disclaimer: I din't try it, just think so after reading > XDM(1). > -- WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve