From owner-freebsd-questions Sat Oct 23 16:36:19 1999 Delivered-To: freebsd-questions@freebsd.org Received: from news.uni-kl.de (news.uni-kl.de [131.246.137.51]) by hub.freebsd.org (Postfix) with SMTP id E4A4C14C9C for ; Sat, 23 Oct 1999 16:36:15 -0700 (PDT) (envelope-from sold@cheasy.de) Received: from kit.uni-kl.de ( mail.kit.uni-kl.de [131.246.168.130] ) by news.uni-kl.de id aa24320 for ; 24 Oct 1999 01:38 MESZ Received: from KIT_PRIAMOS/SpoolDir by kit.uni-kl.de (Mercury 1.43); 24 Oct 99 01:36:15 +0200 Received: from SpoolDir by KIT_PRIAMOS (Mercury 1.43); 24 Oct 99 01:36:12 +0200 Received: from router.merowingia.uni-kl.de (131.246.134.2) by kit.uni-kl.de (Mercury 1.43) with ESMTP; 24 Oct 99 01:36:07 +0200 Received: from mero-13a.merowingia.uni-kl.de (mero-13a.merowingia.uni-kl.de [131.246.135.13]) by router.merowingia.uni-kl.de (8.9.3/8.8.8) with ESMTP id BAA54549 for ; Sun, 24 Oct 1999 01:36:06 +0200 (CEST) Received: (from root@localhost) by mero-13a.merowingia.uni-kl.de (8.9.3/8.9.3) id BAA00884; Sun, 24 Oct 1999 01:35:20 +0200 (CEST) (envelope-from sold) From: Christoph Sold MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14354.17975.313473.480254@mero-13a.merowingia.uni-kl.de> Date: Sun, 24 Oct 1999 01:35:19 +0200 (CEST) To: FreeBSD-Questions@freebsd.org Subject: Re: My /usr/local/etc/kdm.sh script does not work In-Reply-To: <381217BB.CDA1A810@gorean.org> References: <199910231434.QAA01263@mero-13a.merowingia.uni-kl.de> <381217BB.CDA1A810@gorean.org> X-Mailer: VM 6.72 under 21.1 (patch 6) "Big Bend" XEmacs Lucid Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Doug Barton writes: > Christoph Sold wrote: > > > > Hi Folks, > > > > I sumbled across a problem I am not able to solve myself: I want to > > start kdm automatically at boot time. > > Look in /etc/ttys for xdm, copy the line, replace with the > path to kdm and turn it on. Then do 'kill -1 1' to hup init and you > should have it ready to go. For hysterical raisins (and because of the advice of Greg Lehey), I wanted to avoid the /etc/ttys solution. A friend of mine found the problem: during startup, $PATH is not (yet) set up. Thus, changing the script to the following solved the problem, too. Nevertheless, Thanks, Doug: Your solution works well, too. -Christoph Sold P.S: Changed kdm startup script: file:///usr/local/etc/rc.d/kdm.sh --------------------------------------------------------------------------- #!/bin/sh export PATH="/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/X11R6/bin" if [ -x /usr/local/bin/kdm ] ; then #sleep for some time to give getty a chance to grab its ttys (echo -n "kdm"; sleep 12; kdm > /var/log/kdm.startup 2>&1 )& fi exit 0 --------------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message