~ salmonella-environment-setup (master) 8a2bd80c22e1a963ef43d3dd48610b14c33485b9


commit 8a2bd80c22e1a963ef43d3dd48610b14c33485b9
Author:     Mario Domenech Goulart <mario@parenteses.org>
AuthorDate: Sat Jul 5 13:34:33 2025 +0200
Commit:     Mario Domenech Goulart <mario@parenteses.org>
CommitDate: Sat Jul 5 13:34:53 2025 +0200

    Add cron script to garbage collect old awful-salmonella-tar cache entries

diff --git a/awful/cron/awful-salmonella-tar-cache-gc b/awful/cron/awful-salmonella-tar-cache-gc
new file mode 100755
index 0000000..d3da809
--- /dev/null
+++ b/awful/cron/awful-salmonella-tar-cache-gc
@@ -0,0 +1,12 @@
+#! /bin/sh
+
+# Remove old entries from the cache of awful-salmonella-tar, keeping
+# the latest 100.  This is specially important in case the server gets
+# hit by LLM bots which ignore robots.txt.
+#
+# This file can be placed under /etc/cron.{hourly,daily,weekly,monthly}.
+
+/home/chicken/local/chicken-5/bin/ast-cache-manager \
+  /var/cache/awful-salmonella-tar/ \
+  $(systemctl show --property MainPID --value awful) \
+  100
Trap