drop permission prestart from polipo service module
chowning the cache directory can timeout the service, permissions
on this directory should never change without user intervention
commit32d6ae7ed9a866e56a507aea28ea0ea7ada57002
authorEmery Hemingway <emery@vfemail.net>
dateThu 16 Oct 2014, 10:54 (12 years ago)
parenta3e5eca
nixos/modules/services/networking/polipo.nix−4
@@ -103,12 +103,8 @@ in
103103 description = "caching web proxy";
104104 after = [ "network.target" "nss-lookup.target" ];
105105 wantedBy = [ "multi-user.target"];
106− preStart = ''
107− ${pkgs.coreutils}/bin/chown polipo:polipo /var/cache/polipo -R
108− '';
109106 serviceConfig = {
110107 ExecStart = "${pkgs.polipo}/bin/polipo -c ${polipoConfig}";
111− ExecReload = "${pkgs.coreutils}/bin/kill -USR1 $MAINPID";
112108 User = "polipo";
113109 };
114110 };