This commit is contained in:
Bastian (BaM)
2025-09-13 17:06:39 +02:00
parent 2c46152413
commit c3c12ac678

View File

@@ -14,6 +14,8 @@ WOL_CMD="wakeonlan" # or "etherwake -i eth0 $WOL_M
NC_CMD="nc" # netcat NC_CMD="nc" # netcat
DOCKER="docker" DOCKER="docker"
sleep 1
# Ensure only one instance of this script is running # Ensure only one instance of this script is running
if [ "$(pgrep -f $SCRIPTNAME)" != $$ ]; then if [ "$(pgrep -f $SCRIPTNAME)" != $$ ]; then
echo "Killing running instance of $SCRIPTNAME..." echo "Killing running instance of $SCRIPTNAME..."