cleanup restart abgesichert

This commit is contained in:
root
2026-01-28 14:04:29 +01:00
parent ea2343a1df
commit 83e2527c01

View File

@@ -3,6 +3,13 @@
# ============================================================================== # ==============================================================================
# ISPConfig Proxy Cleanup Script - Version 1.1 # ISPConfig Proxy Cleanup Script - Version 1.1
# ============================================================================== # ==============================================================================
LOCKFILE="/tmp/restart.cleanproxy.lock"
# Sichern gegen Mehrfachstart
lockfile -r 0 "$LOCKFILE" || exit 1
# TRAP: Stellt sicher, dass das Lockfile bei JEDEM Beenden gelöscht wird
trap 'rm -f "$LOCKFILE"' EXIT
# --- KONFIGURATION --- # --- KONFIGURATION ---
# Nutzt die zentrale Konfiguration des Proxy-Sync-Scripts # Nutzt die zentrale Konfiguration des Proxy-Sync-Scripts