reconf the master and common scripts and all unraid essential scripts# Please enter the commit message for your changes. Lines starting

This commit is contained in:
2026-03-24 00:28:11 +00:00
parent efb35cd9c4
commit 9300ae11c2
10 changed files with 454 additions and 90 deletions
+35
View File
@@ -0,0 +1,35 @@
#!/bin/bash
set -e
#-----------------------------------------------------------------------------------------------
# Stop all running Rsync processes for Unraid
#-----------------------------------------------------------------------------------------------
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/../common.sh"
# Load central config
load_master_conf
# Parse CLI args (supports --dry-run)
parse_args "$@"
# Functions
stop_rsync_processes() {
if [ "$DRY_RUN" = true ]; then
echo "[DRY-RUN] Would stop all running rsync processes"
else
echo "Stopping all rsync processes..."
if pkill -f rsync; then
echo "All rsync processes stopped successfully."
else
echo "No rsync processes found or failed to stop."
fi
fi
}
# MAIN
echo "==== Rsync Stop Script Started: $(date) ===="
stop_rsync_processes