From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Legoll Subject: Re: Proxy settings wrt guix daemon Date: Sat, 4 Apr 2020 00:29:10 +0200 Message-ID: References: <87blofyzn0.fsf@gnu.org> <87eet8v948.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:46887) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKUof-0006aq-P2 for guix-devel@gnu.org; Fri, 03 Apr 2020 18:29:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jKUod-0006bH-LP for guix-devel@gnu.org; Fri, 03 Apr 2020 18:29:33 -0400 In-Reply-To: <87eet8v948.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: guix-devel Hello, thanks for the help, but... On Tue, Mar 31, 2020 at 5:26 PM Ludovic Court=C3=A8s wrote: > I was proposing a custom action for the Shepherd service, just like the > mcron Shepherd service has a custom =E2=80=98schedule=E2=80=99 action tha= t one can > invoke with =E2=80=9Cherd schedule mcron=E2=80=9D. > > Hope that=E2=80=99s clearer! I've found the shepherd-schedule-action code, but that does not tell me how to implement the whole thing. Let me try harder, the following are all questions. I do not know if they make any sense at all... How do I make the running daemon use a proxy ? By doing setenv() calls in builtins.cc builtinDownload() before the execv(guix perform-download) ? How do I make the running daemon know which proxy to use ? By getting it from the settings object from globals.hh ? How do I make the running daemon change the value stored in the settings object ? By sending it an order to do so via the listening socket ? What will send this order through that socket ? Another, one-shot, ephemeral, guix-daemon process with the --set-proxy command-line option ? What is the UI to run that guix-daemon --set-proxy ? Use herd set-proxy guix-daemon "https://proxy:3128" ? (Like what is done for mcron) I really need a few "make this thing here do that" hints... And then also a bit of a hint on how I would test the modifications without risking my running system. I hope that's not too demanding... Thanks --=20 Vincent Legoll