Date: Sun, 24 Oct 1999 01:35:19 +0200 (CEST) From: Christoph Sold <cs@cheasy.de> To: FreeBSD-Questions@freebsd.org Subject: Re: My /usr/local/etc/kdm.sh script does not work Message-ID: <14354.17975.313473.480254@mero-13a.merowingia.uni-kl.de> In-Reply-To: <381217BB.CDA1A810@gorean.org> References: <199910231434.QAA01263@mero-13a.merowingia.uni-kl.de> <381217BB.CDA1A810@gorean.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14354.17975.313473.480254>
