Re: Setting global enviroment variables

2008-04-08 Thread Matthew Seaman
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.

Setting global enviroment variables

2008-04-08 Thread Andrew Cid
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 --

Re: Setting global enviroment variables

2008-04-08 Thread Wojciech Puchar
What's the best way of setting environment variables on FreeBSD so that all users and daemons running from rc can see them? man login.conf 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,

Re: Setting global enviroment variables

2008-04-08 Thread Gregory
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

Re: Setting global enviroment variables

2008-04-08 Thread Andrew Cid
On Tue, Apr 08, 2008 at 06:31:27PM +0100, Matthew Seaman wrote: /etc/login.conf -- don't forget to run cap_mkdb after editing it. Thanks, that's totally it. I added PACKAGEROOT to setenv in the default class: