diff options
Diffstat (limited to 'units')
-rw-r--r-- | units/trove-garbage-collect.service | 9 | ||||
-rw-r--r-- | units/trove-garbage-collect.timer | 9 |
2 files changed, 18 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 diff --git a/units/trove-garbage-collect.timer b/units/trove-garbage-collect.timer new file mode 100644 index 0000000..77b0dfe --- /dev/null +++ b/units/trove-garbage-collect.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Remove old artifacts once every hour + +[Timer] +OnUnitActiveSec=1h + +[Install] +WantedBy=timers.target +Also=trove-garbage-collect.service |