mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-11-10 03:30:08 +01:00
logs: standardise log filenames to xamxam-{service}-{date}.log
This commit is contained in:
1 parent
7b6d79c133
commit
d2cef85966
25 files changed
+442
-83
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user