From owner-freebsd-questions@freebsd.org Fri Jan 5 02:28:41 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 0F832EA7E7A for ; Fri, 5 Jan 2018 02:28:41 +0000 (UTC) (envelope-from yscrappy@gmail.com) Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) (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 9FD356E7EE; Fri, 5 Jan 2018 02:28:40 +0000 (UTC) (envelope-from yscrappy@gmail.com) Received: by mail-wr0-f196.google.com with SMTP id p6so3186375wrd.0; Thu, 04 Jan 2018 18:28:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=JC+Ev0DmTbv6fr+di/8LnctMaziat8zr9f2rXKrKxmU=; b=n5jHrXwdcIGSSVFnu/NyXy+kK1Pte/ZjXl4NN/QLgeqhW/ieGNeefLGZ3OU2KEO5Bl 3ouwhSyszDIbui39e3l9XQ/mV7Ffy7iIgtkIo9f3Jergf0OYal0weya08UZ6TjiGaLei vqNti/tiXwumscSALX4eZ/UBkcm0YZhDhztKw6Hf8UddXwImNqHCdtH3+GCXYhZz5Tj6 VWHgkR6Vcsa/macZYqwpZ/tJR1uU4fpmrJO7DhKbcjDKd6MtlVqiZ3uxrG8FvQMU0/Ro 8F3zBoLX8iNMr4jSxX/hNw4zSV8HFDpcTS3tN1JmKTw4UYRZ4lJ++eO5GkrfwgLF7ht7 STIg== X-Gm-Message-State: AKGB3mIPl/AjQUWhDBJ8lsrS6mVWY+FUjutyZGTVsvmvKRJl22esJD/z cErXxsR0N27KqwQmJzLXovW8sK6G X-Google-Smtp-Source: ACJfBotQ9rTmv/R9c7QujlyRrN6HM90QSF1yo+lcMpt8gSJOQLn8eZ993VDd3aW1l/P5pUmGhVFivg== X-Received: by 10.223.170.11 with SMTP id p11mr1163901wrd.271.1515115491981; Thu, 04 Jan 2018 17:24:51 -0800 (PST) Received: from hub.org (hub.org. [188.227.186.52]) by smtp.gmail.com with ESMTPSA id m70sm3216611wma.36.2018.01.04.17.24.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jan 2018 17:24:50 -0800 (PST) Received: from localhost (unknown [188.227.186.44]) by hub.org (Postfix) with ESMTP id 8457F14329F7; Fri, 5 Jan 2018 01:24:50 +0000 (UTC) Received: from hub.org ([188.227.186.52]) by localhost (maia-lon.uk.hub.org [188.227.186.44]) (maiad, port 10024) with ESMTP id 22776-10; Fri, 5 Jan 2018 01:24:50 +0000 (UTC) Received: from [192.168.0.8] (S0106f0f249687dd3.gv.shawcable.net [24.108.212.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by hub.org (Postfix) with ESMTPSA id D36B014329DF; Fri, 5 Jan 2018 01:24:49 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.0 \(3445.1.6\)) Subject: Re: Running bsdstats through a proxy From: Marc G Fournier In-Reply-To: <8e1589b3-1fbe-9541-dcd3-778bffd3ce43@FreeBSD.org> Date: Thu, 4 Jan 2018 17:24:47 -0800 Cc: freebsd-questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <8F9BE360-6F16-4CE5-9CD5-20ABF50B8BB6@hub.org> References: <8e1589b3-1fbe-9541-dcd3-778bffd3ce43@FreeBSD.org> To: Matthew Seaman X-Mailer: Apple Mail (2.3445.1.6) 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 02:28:41 -0000 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 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