From owner-freebsd-questions Wed Aug 1 14:33:50 2001 Delivered-To: freebsd-questions@freebsd.org Received: from be-well.ilk.org (lowellg.ne.mediaone.net [24.147.184.128]) by hub.freebsd.org (Postfix) with ESMTP id 5B93E37B403 for ; Wed, 1 Aug 2001 14:33:48 -0700 (PDT) (envelope-from lowell@be-well.ilk.org) Received: (from lowell@localhost) by be-well.ilk.org (8.11.4/8.11.4) id f71LXjX02254; Wed, 1 Aug 2001 17:33:45 -0400 (EDT) (envelope-from lowell) To: freebsd-questions@freebsd.org, auman@info4seniors.org Subject: Re: Start up script and PATH statement References: <3B67CE4C.25682.90BD221@localhost> From: Lowell Gilbert Date: 01 Aug 2001 17:33:45 -0400 In-Reply-To: auman@info4seniors.org's message of "1 Aug 2001 15:42:16 +0200" Message-ID: <44puafpirq.fsf@lowellg.ne.mediaone.net> Lines: 26 X-Mailer: Gnus v5.7/Emacs 20.7 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG auman@info4seniors.org (Daniel Auman) writes: > Sorry for the simple question but. . . > > I wanted to start a copy of 'vncserver' at boot up. The script works > after boot is complete and I'm logged in as root. Upon boot the start > up script I wrote complains about "xauth" not being in my PATH. > "xauth" is in '/usr/X11R6/bin' which is in root's '.profile' PATH > statement as well as '/.profile'. > > Can anybody help? Thanks in advance. The path with which the local scripts are called is specified near the beginning of /etc/rc. You could add to it in your rc.conf, or in your vncserver script, but it's probably better to just use the full paths inside your script if possible. [It may not BE possible: xauth may not be called directly. In that case, I think the best option is to add it onto the path in the vncserver shell script: something like PATH=${PATH}:/usr/X11R6/bin; export PATH should do it.] The reason that .profile doesn't help is that those are only sourced when root starts an interactive shell, which a shell script obviously does not. Good luck. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message