@cryptotaxi247 / infra / commits / 28baff96

Periodically run htcacheclean

Eelco Dolstra committed Feb 19, 2015 at 13:24 UTC 28baff964321181a73fd0e311e2d77f0f76a62ac
1 file changed +11
delft/wendy.nix
+11
@@ -156,6 +156,7 @@ in
156 services.zabbixServer.dbPassword = import ./zabbix-password.nix;
157
158 # Poor man's time sync for the non-NixOS machines.
159 + /*
160 systemd.services.fix-time =
161 { path = [ pkgs.openssh ];
162 script =
@@ -165,6 +166,7 @@ in
166 '';
167 startAt = "*:03";
168 };
169 + */
170
171 services.logrotate.enable = true;
172 services.logrotate.config = ''
@@ -186,4 +188,13 @@ in
188 }
189 '';
190
191 + systemd.services.htcacheclean =
192 + { path = [ ];
193 + description = "Clean httpd Cache";
194 + serviceConfig.ExecStart =
195 + "${config.services.httpd.package}/bin/htcacheclean " +
196 + "-v -t -l 32G -p /var/cache/hydra-binary-cache";
197 + startAt = "Sat 05:45";
198 + };
199 +
200 }