From owner-freebsd-hackers Thu May 1 05:08:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA20285 for hackers-outgoing; Thu, 1 May 1997 05:08:10 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA20262 for ; Thu, 1 May 1997 05:08:07 -0700 (PDT) Received: from minor.stranger.com (stranger.vip.best.com [204.156.129.250]) by who.cdrom.com (8.8.5/8.6.11) with SMTP id BAA10535 for ; Thu, 1 May 1997 01:38:54 -0700 (PDT) Received: from dog.farm.org (dog.farm.org [207.111.140.47]) by minor.stranger.com (8.6.12/8.6.12) with ESMTP id CAA22265; Thu, 1 May 1997 02:04:02 -0700 Received: (from dk@localhost) by dog.farm.org (8.7.5/dk#3) id BAA10893; Thu, 1 May 1997 01:35:46 -0700 (PDT) Date: Thu, 1 May 1997 01:35:46 -0700 (PDT) From: Dmitry Kohmanyuk Message-Id: <199705010835.BAA10893@dog.farm.org> To: dawes@rf900.physics.usyd.edu.au (David Dawes) Cc: freebsd-hackers@freebsd.org Subject: Re: xdm in /usr/X11R6/etc/rc.d problem Newsgroups: cs-monolit.gated.lists.freebsd.hackers Organization: FARM Computing Association Reply-To: dk+@ua.net X-Newsreader: TIN [version 1.2 PL2] Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In article <19970428070651.14651@rf900.physics.usyd.edu.au> you wrote: > On Sun, Apr 27, 1997 at 08:34:20PM +0200, Peter Korsten wrote: > >For the normal daemons, this works OK, but putting xdm in the X11 > >rc directory turned out to be a Bad Idea. What seems to happen, is > >that xdm initializes and starts X, but after that, the vty's are > >initilized. it doesn't have too. see below. [...] > >I'm almost positive that this is a known issue, but is there a way > >to get around it? > Delay the starting of xdm. Here's what I have in my /usr/X11R6/etc/rc.d/xdm > file: > #!/bin/sh > # Make sure root can start xconsole when xdm starts > chown root /dev/console > if [ -f /usr/X11R6/bin/xdm -a -f /usr/local/etc/xdm/xdm-config ]; then > echo -n ' xdm' > (sleep 10; /usr/X11R6/bin/xdm -config /usr/local/etc/xdm/xdm-config)& > fi hmm, I always do it this way: - edit xdm/Xservers - remove local X server - make sure xdm/Xaccess has localhost (or * if you don't care) - edit /etc/ttys - run X server from there (as a bonus, init would stop restarting it if it fails) ttyv8 "/usr/X11/bin/X ttyv8 -logo -once -query localhost" xterm on secure - run xdm whenever you want, it would just sit quietly waiting for init launching gettys and X server at the same time... -- old unix hackers don't die, they just turn into zombie processes -- net.someone