From owner-freebsd-questions Fri Aug 7 10:56:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA17456 for freebsd-questions-outgoing; Fri, 7 Aug 1998 10:56:35 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ix.netcom.com (sil-wa3-22.ix.netcom.com [206.214.137.86]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA17451 for ; Fri, 7 Aug 1998 10:56:29 -0700 (PDT) (envelope-from tomdean@ix.netcom.com) Received: (from tomdean@localhost) by ix.netcom.com (8.8.8/8.8.8) id KAA00926; Fri, 7 Aug 1998 10:56:02 -0700 (PDT) (envelope-from tomdean) Date: Fri, 7 Aug 1998 10:56:02 -0700 (PDT) Message-Id: <199808071756.KAA00926@ix.netcom.com> From: Thomas Dean To: mwest@cs.uct.ac.za CC: questions@FreeBSD.ORG In-reply-to: (message from Matthew West on Fri, 7 Aug 1998 19:05:44 +0200 (SAST)) Subject: Re: starting X Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > In /etc/rc.local: > > # put your local stuff here > echo -n 'xdm' > /usr/X11R6/bin/xdm > sleep 1 > echo '.' > > --mwest@cs.uct.ac.za If the xdm-pid file exists, it may stop xdm from starting. It may be better to clean-up first. Also, it has been pointed out to me that we should move from /etc/rc.local to /usr/local/etc/rc.d. I haven't. 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 # now, we can start it. echo -n "xdm"; /usr/X11R6/bin/xdm fi /usr/X11R6/lib/X11/xdm/xdm-pid should be changed to point to the xdm-pid file. I believe this is the default location. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message