summaryrefslogtreecommitdiff
path: root/units/trove-garbage-collect.service
diff options
context:
space:
mode:
Diffstat (limited to 'units/trove-garbage-collect.service')
-rw-r--r--units/trove-garbage-collect.service9
1 files changed, 9 insertions, 0 deletions
diff --git a/units/trove-garbage-collect.service b/units/trove-garbage-collect.service
new file mode 100644
index 0000000..9f58873
--- /dev/null
+++ b/units/trove-garbage-collect.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Remove old artifacts from the artifact cache until 15GB of space is free.
+
+[Service]
+Type=idle
+ExecStart=/usr/bin/trove-gc --cachedir-min-space=15G --log=syslog --verbose
+
+[Install]
+WantedBy=trove-garbage-collect.service