Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jan 2018 17:24:47 -0800
From:      Marc G Fournier <scrappy@hub.org>
To:        Matthew Seaman <matthew@FreeBSD.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Running bsdstats through a proxy
Message-ID:  <8F9BE360-6F16-4CE5-9CD5-20ABF50B8BB6@hub.org>
In-Reply-To: <8e1589b3-1fbe-9541-dcd3-778bffd3ce43@FreeBSD.org>
References:  <wu7y3n8w23g.fsf@banyan.cs.ait.ac.th> <8e1589b3-1fbe-9541-dcd3-778bffd3ce43@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

You should be able to just add them to /etc/periodic.conf =E2=80=A6 =
bsdstats on FreeBSD will read its environment variables from there =E2=80=A6=




> On Nov 14, 2017, at 23:45, Matthew Seaman <matthew@FreeBSD.org> wrote:
>=20
> On 15/11/2017 05:19, Olivier wrote:
>> Hi,
>>=20
>> I would like to enable bsdstats to run, but I need to configure a =
proxy.
>>=20
>> I see it rely on the environment variable HTTP_PROXY, but where =
should I
>> define it so that it is used by the monthly periodic script and by
>> bsdstats launched at boot?
>>=20
>> TIA,
>>=20
>> Olivier
>>=20
>=20
> /etc/login.conf should work for you.  You can add whatever environment
> settings you want to the  :setenv=3DMAIL=3D/var/mail/$,BLOCKSIZE=3DK:\ =
line.
>=20
> Remember to run 'cap_mkdb /etc/login.conf' after editing the file.
>=20
> 	Cheers,
>=20
> 	Matthew
>=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8F9BE360-6F16-4CE5-9CD5-20ABF50B8BB6>