logs: standardise log filenames to xamxam-{service}-{date}.log

This commit is contained in:
Pontoporeia
2026-08-24 11:34:34 +02:00
parent 7b6d79c133
commit d2cef85966
25 changed files with 442 additions and 83 deletions
+4 -3
View File
@@ -1,7 +1,8 @@
# XAMXAM — orphaned draft cleanup cron job
# Installed to /etc/cron.d/xamxam-cleanup (system cron format: minute hour dom month dow user command)
#
# Deletes draft theses older than 24h that have no attached files.
# Runs every 4 hours — drafts only become eligible after 24h, so this is ample.
# Deletes draft theses older than 7 days (168h) that have no attached files.
# Runs every 2 days — drafts only become eligible after 7 days, so this is ample.
# The script is a dry-run unless --no-dry-run is passed.
0 */4 * * * www-data php /var/www/xamxam/scripts/cleanup-drafts.php --no-dry-run >> /var/log/xamxam-cleanup.log 2>&1
# Eligibility age is configurable via OLDER_THAN_HOURS (default 168).
0 0 */2 * * www-data php /tmp/cleanup-drafts.php --no-dry-run >> /var/log/xamxam-cleanup-$(date +\%Y-\%m-\%d).log 2>&1