From owner-freebsd-questions@freebsd.org Fri Jan 5 03:50:28 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A5F1CEAD6FB for ; Fri, 5 Jan 2018 03:50:28 +0000 (UTC) (envelope-from olivier2553@gmail.com) Received: from mail-lf0-x244.google.com (mail-lf0-x244.google.com [IPv6:2a00:1450:4010:c07::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2743A72CEB; Fri, 5 Jan 2018 03:50:28 +0000 (UTC) (envelope-from olivier2553@gmail.com) Received: by mail-lf0-x244.google.com with SMTP id u84so3859594lff.7; Thu, 04 Jan 2018 19:50:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=JyJP/U/4i7aL6xbcSdkj0+/cd5hwkh8rWe0297IGS+U=; b=rLaFX1G/IziGlkJwjofFl0knOyBaZlfHIhpZ6Ux3L+xLmtc7RKtXgtsyLZP6Epym0f l3ctyoRNUMJAW2wLoZeXSKErCbzvIQl4JJPMddP1cgI94tVepB+b+VdbvCOC7n0ggYP9 xCuSERpCRE/lFFhKcUbhYxJbTUgEcb3siaJlvTkSPO5Ro+puOPZ1g87r5h305zCkPCdO 5Vc5PEVU5dVCVshc3IPUaGivfDL1+LUakrWqPGGeKC1DiEJjELInQwyCQqkyhlBVWjI6 KKZh6VeUCfnrFXh8kXm4VyvDioL6FyrDYLOOZJm32WmgMvXNPiFNesxXcyN+9r+MSXTf 8p1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=JyJP/U/4i7aL6xbcSdkj0+/cd5hwkh8rWe0297IGS+U=; b=tkV+njRwXX704qhT3C+WwwKni+LSkki2Me5wjuj4Vyt/HcN0Kw19GHNF0qDUM1CpXI tLQea3UhU4y3p06097TuwEo7gyi/bO2wy8So+oKw+0Bw5imgRQfRc3iy8M93K+6geWyV 4bWxL+ReTeS/4H3H2gV9eMeRPJ6NMrlOZvQWGbKaJ/Ok9U9iBs+6dgzB6ueStJ8KG0vh LbisE/dxUG+2F7YQ+PhKnn7tx62MlNsQQyOOuEmv3za+cuRpCI/ECMBm+p32Uow0xB16 +TJ73c3W02dHSSGg6Bo2rfMNOxSm9rf+SiR5plSha1q9frm4ITVta7SIgKPyTC9+/+pe +ySA== X-Gm-Message-State: AKGB3mKzL7FHg2ESCa7hRHP33ZBK3QlN87PWEC1T3moZE2/wl4+gLHFB XTJe/6PA4JVl2CB8cipPjqbgl9VfcA05bcQ9BZwLJg== X-Google-Smtp-Source: ACJfBotPIXzyw6kY6qEUeUsPbD6HnUzSZhBS802jYgg281fgUsHUyfSZXUzJZ5rXVAd4tHu61tLE52kIrLBimcBS3DM= X-Received: by 10.46.17.130 with SMTP id 2mr994818ljr.44.1515124226262; Thu, 04 Jan 2018 19:50:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.168.8 with HTTP; Thu, 4 Jan 2018 19:50:25 -0800 (PST) In-Reply-To: <8F9BE360-6F16-4CE5-9CD5-20ABF50B8BB6@hub.org> References: <8e1589b3-1fbe-9541-dcd3-778bffd3ce43@FreeBSD.org> <8F9BE360-6F16-4CE5-9CD5-20ABF50B8BB6@hub.org> From: Olivier Nicole Date: Fri, 5 Jan 2018 10:50:25 +0700 Message-ID: Subject: Re: Running bsdstats through a proxy To: Marc G Fournier Cc: Matthew Seaman , freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jan 2018 03:50:28 -0000 Marc, On a new machine (FreeBSD 11.1-RELEASE-p6) with bsdstats-6.0_2, I see: The machine contacts the proxy with: HEAD.http://rpt.bsdstats.org/. Reply: HTTP/1.0.302Moved.Temporarily Then the machine contacts the proxy with: GET.http://rpt.bsdstats.org/sc Reply: HTTP/1.0.500.Internal.Server Best regards, Olivier On Fri, Jan 5, 2018 at 8:24 AM, Marc G Fournier wrote: > > You should be able to just add them to /etc/periodic.conf =E2=80=A6 bsdst= ats on FreeBSD will read its environment variables from there =E2=80=A6 > > > >> On Nov 14, 2017, at 23:45, Matthew Seaman wrote: >> >> On 15/11/2017 05:19, Olivier wrote: >>> Hi, >>> >>> I would like to enable bsdstats to run, but I need to configure a proxy= . >>> >>> 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? >>> >>> TIA, >>> >>> Olivier >>> >> >> /etc/login.conf should work for you. You can add whatever environment >> settings you want to the :setenv=3DMAIL=3D/var/mail/$,BLOCKSIZE=3DK:\ l= ine. >> >> Remember to run 'cap_mkdb /etc/login.conf' after editing the file. >> >> Cheers, >> >> Matthew >> > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg"