From 83e2527c01459f2af8cdf0560fbd842b717de4cd Mon Sep 17 00:00:00 2001 From: root Date: Wed, 28 Jan 2026 14:04:29 +0100 Subject: [PATCH] cleanup restart abgesichert --- sync-ispconfig-cleanup.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sync-ispconfig-cleanup.sh b/sync-ispconfig-cleanup.sh index 5767baf..c407cb5 100755 --- a/sync-ispconfig-cleanup.sh +++ b/sync-ispconfig-cleanup.sh @@ -3,6 +3,13 @@ # ============================================================================== # 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 --- # Nutzt die zentrale Konfiguration des Proxy-Sync-Scripts