From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Privoxy user config without hard-coded GNU store path? Date: Sun, 06 Oct 2019 14:46:49 +0200 Message-ID: <871rvqghxi.fsf@ambrevar.xyz> References: <87y2xygkhc.fsf@ambrevar.xyz> <20191006122245.GH561@E5400> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:58202) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iH5w6-00084T-FM for help-guix@gnu.org; Sun, 06 Oct 2019 08:46:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iH5w5-0002Xu-Er for help-guix@gnu.org; Sun, 06 Oct 2019 08:46:54 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:55535) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iH5w5-0002XT-92 for help-guix@gnu.org; Sun, 06 Oct 2019 08:46:53 -0400 In-Reply-To: <20191006122245.GH561@E5400> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Efraim Flashner Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Efraim! Thanks for the suggestions! > The simple solution here is to change the lines to=20 > confdir /home/USER/.guix-profile/etc/privoxy > logdir /home/USER/log/privoxy Duh, that was easy! :p > If you want an untested user shepherd service, here's one I've come up > with on the spot: > > (define privoxy > (make > #:provides '(privoxy) > #:docstring "Privoxy filters outgoing internet connections" > #:start (make-forkexec-constructor > '("/var/guix/profiles/per-user/USER/current-guix/bin/privoxy"= "--no-daemon" "/home/USER/.config/privoxy/config") > #:log-file "/home/USER/log/privoxy/privoxy.log") > #:stop (make-kill-destructor) > #:respawn? #t)) > (register-services privoxy) That's a good starting point, but furthermore what I meant was a service in which we declare the configuration file, so that I don't need to provide my own "config". I guess that'd be another neat service to add to Shepherd/Guix ;) =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl2Z4jkACgkQm9z0l6S7 zH8PdQf/SoH7PfoeawsHQ3csm6Pzmfyd08cTLmZyPExSXwhOrpzgoy1My6TKZXCa pwO+RGMjVe3IxNFG89VwVWPUtqdFAWofw3phB9Hi9oBKstPRDSkU0oFVztb+KQch UfiTjh0iUMBb/GnYYubJQFp+VexGhYR3OGBTXSsfMiBrn3J3xCvdLcNE1kjmy4SH DFvsVFV0RfM7Z2SkprDd/tOnsXA2dsXN1eD7r/5+oiEE5apJyckzZ+fgKpz09i9a 3TSMBgKL/XEEuAvl6EXG/e7FiXEpXUsY8ILR9QIMuWM05KqOc4nA7NLgkO7PyKnM GIiHmKgy3rIGP2Bpb9HW0kSvRcMffA== =c3df -----END PGP SIGNATURE----- --=-=-=--