aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-07-17 20:52:52 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-07-17 20:52:52 +0200
commitb27d875111271743be939368935ab28d93eae042 (patch)
tree32c27479d7811f2d5c57c23836874dfcbfdf6368
parent00e99a13fbbe0fe5be2b148365e0afffa905718a (diff)
log-forward: lock script to run just once
-rw-r--r--log-forward3
1 files changed, 3 insertions, 0 deletions
diff --git a/log-forward b/log-forward
index 0500072..40afbe6 100644
--- a/log-forward
+++ b/log-forward
@@ -12,10 +12,13 @@
:global LogPrintExit;
:global MailServerIsUp;
+:global ScriptLock;
:global SendNotification;
:global SymbolForNotification;
:global WaitFullyConnected;
+$ScriptLock "log-forward";
+
$WaitFullyConnected;
:if ($MailServerIsUp = false) do={