added manual neuclear option to arrs cleanup
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user