added manual neuclear option to arrs cleanup

This commit is contained in:
2026-04-26 01:05:22 -04:00
parent f826672b80
commit 3df4542351
11 changed files with 988 additions and 97 deletions
+6
View File
@@ -672,6 +672,12 @@ get_rsync_opts() {
# -----------------------------------------------------------------------------------------------
LOCK_DIR="/tmp/unraid_locks"
# Ensure DATA_DIR exists — created here so every script that sources common.sh
# can safely write to it without checking first
if [[ -n "${DATA_DIR:-}" ]] && [[ ! -d "$DATA_DIR" ]]; then
mkdir -p "$DATA_DIR" 2>/dev/null || true
fi
RSYNC_COUNT_FILE="$LOCK_DIR/rsync_active_count"
RSYNC_MAX_CONCURRENT=3
LOCK_WARN_AGE=300 # seconds — warn if lock older than this (5min default)