Ludovic Courtès 3302e03ba0
services: guix: Add 'set-http-proxy' action.
Fixes <https://bugs.gnu.org/25569>.
Reported by Divan Santana <divan@santanas.co.za>.

* gnu/services/base.scm (shepherd-set-http-proxy-action): New procedure.
(guix-shepherd-service): Add 'actions' field.  Change 'start' to a
lambda; check the value of the "http_proxy" environment variable and
add "http_proxy" and "https_proxy" to #:environment-variables as a
function of that.
* gnu/tests/base.scm (run-basic-test)["guix-daemon set-http-proxy
action", "guix-daemon set-http-proxy action, clear"]: New tests.
* doc/guix.texi (Base Services): Document it.
2020-04-07 12:31:36 +02:00
..
2017-08-13 07:36:32 +01:00
2020-03-02 23:39:44 +01:00
2019-09-25 08:35:33 +01:00
2019-03-20 20:31:15 +01:00
2018-12-24 11:18:36 +02:00
2020-03-25 14:17:24 +01:00
2020-03-16 14:05:52 +01:00
2019-05-31 20:22:23 +01:00