Skip to content
Snippets Groups Projects
Unverified Commit b078c12e authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Highlight the max age by defining it separately.

This gives us a good opportunity to mention the privacy policy, too.
parent e989fb5e
No related branches found
No related tags found
1 merge request!31Remove old Tahoe-LAFS incident reports
...@@ -8,6 +8,17 @@ let ...@@ -8,6 +8,17 @@ let
storage-node-name = "storage"; storage-node-name = "storage";
# TODO: This path copied from tahoe.nix. # TODO: This path copied from tahoe.nix.
tahoe-base = "/var/db/tahoe-lafs"; tahoe-base = "/var/db/tahoe-lafs";
# The full path to the directory where the storage server will write
# incident reports.
incidents-dir = "${tahoe-base}/${storage-node-name}/logs/incidents";
# The maximum age that will be allowed for incident reports. See
# tmpfiles.d(5) for the syntax.
#
# NOTE: This is promised by the service privacy policy. It *may not* be
# raised without following the process for updating the privacy policy.
max-incident-age = "29d";
in in
{ {
# Upstream tahoe-lafs module conflicts with ours (since ours is a # Upstream tahoe-lafs module conflicts with ours (since ours is a
...@@ -130,8 +141,8 @@ in ...@@ -130,8 +141,8 @@ in
systemd.tmpfiles.rules = systemd.tmpfiles.rules =
# Add a rule to prevent incident reports from accumulating indefinitely. # Add a rule to prevent incident reports from accumulating indefinitely.
# See tmpfiles.d(5). # See tmpfiles.d(5) for the syntax.
[ "d ${tahoe-base}/${storage-node-name}/logs/incidents 0755 root root 29d -" [ "d ${incidents-dir} 0755 root root ${max-incident-age} -"
]; ];
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment