Setting global enviroment variables

Matthew Seaman m.seaman at infracaninophile.co.uk
Tue Apr 8 17:31:47 UTC 2008


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.

/etc/login.conf -- don't forget to run cap_mkdb after editing it.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                  Kent, CT11 9PW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080408/2e378b89/signature.pgp


More information about the freebsd-questions mailing list