Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jul 1999 09:34:59 -0700 (PDT)
From:      Thomas Dean <tomdean@ix.netcom.com>
To:        scheper@beast.toad.net
Cc:        freebsd-smp@FreeBSD.ORG
Subject:   Re: SMP + XDM = keyboard lockup
Message-ID:  <199907221634.JAA51919@ix.netcom.com>
In-Reply-To: <Pine.LNX.4.10.9907221012260.14509-100000@beast.toad.net> (message from Richard Scheper on Thu, 22 Jul 1999 10:18:00 -0400 (EDT))
References:   <Pine.LNX.4.10.9907221012260.14509-100000@beast.toad.net>

next in thread | previous in thread | raw e-mail | index | archive | help
I have xdm started from /usr/local/etc/rc.d/xdm.sh.  It was stated
earlier that ./rc.d/*.sh is the wave of the future.  This works fine.
No sleep, no '&'. /usr/local/etc/rc.d/xdm.sh is run before rc.local!

/etc/rc looks for scripts in the location contained in the
local_startup variable, which is set in /etc/defaults/rc.defaults to
/usr/local/etc/rc.d.

The script is executed with '(set -T ; trap 'exit 1' 2 ; ${script} start)'

My /etc/ttys contains
...
ttyv0   "/usr/libexec/getty Pc"         cons25  on  secure
ttyv1   "/usr/libexec/getty Pc"         cons25  on secure
ttyv2   "/usr/libexec/getty Pc"         cons25  on secure
ttyv3   "/usr/libexec/getty Pc"         cons25  on secure
ttyv4   "/usr/libexec/getty Pc"         cons25  on secure
ttyv5   "/usr/libexec/getty Pc"         cons25  on secure
ttyv6   "/usr/libexec/getty Pc"         cons25  on secure
ttyv7   "/usr/libexec/getty Pc"         cons25  off secure
...


my /usr/local/etc/rc.d/xdm.sh:

#! /bin/sh
# $Id: xdm.sh,v 1.1 1999/02/14 06:05:30 tomdean Exp $

# start xdm

# 19990115 tomdean - initial version

if [ -x /usr/X11R6/bin/xdm ] ; then
  # need to cleanup first.
  if [ -f /usr/X11R6/lib/X11/xdm/xdm-pid ] ; then
    rm -f /usr/X11R6/lib/X11/xdm/xdm-pid
  fi
  if [ -f /tmp/.X0-lock ] ; then
    rm -f /tmp/.X0-lock
  fi
  # now, we can start it.
  echo " xdm";   /usr/X11R6/bin/xdm
fi

tomdean


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-smp" in the body of the message




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