Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Apr 2008 10:44:39 -0700
From:      Gregory <BitBucket@stcinc.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Setting global enviroment variables
Message-ID:  <200804081044.39664.BitBucket@stcinc.com>
In-Reply-To: <20080408171819.GA56838@farnborough.darq.net>
References:  <20080408171819.GA56838@farnborough.darq.net>

next in thread | previous in thread | raw e-mail | index | archive | help
If you are using sh, or a derived shell such as bash, then you can 
use /etc/profile to achieve your desired result.

On Tuesday 08 April 2008 10:18, Andrew Cid wrote:
> Hi all,
>
> What's the best way of setting environment variables on FreeBSD
> so that all users and daemons running from rc can see them?
>
> I'd like to set PKGROOT to a custom package server, so that all users
> and a couple of daemons that start from rc will use the new packages.
>
> Cheers,
>
>
> Andrew



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