aboutsummaryrefslogtreecommitdiffstats
path: root/script-updates
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-02-24 19:23:32 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-02-24 19:43:35 +0100
commit5316ec6ef5fca34cf8c9f49fe9a82a90f1c47b12 (patch)
tree9f346fe008ddd3c024b7d8766126519ed9e367fc /script-updates
parent125f37615b1e42275fd1766a2cccfba8e8f94b3e (diff)
script-updates: warn on scheduler at startup with no interval
Diffstat (limited to 'script-updates')
-rw-r--r--script-updates7
1 files changed, 7 insertions, 0 deletions
diff --git a/script-updates b/script-updates
index 759c5e0..af45a0a 100644
--- a/script-updates
+++ b/script-updates
@@ -32,6 +32,13 @@
:log warning ("Policies differ for script " . $ScriptVal->"name" . \
" and its scheduler " . $SchedulerVal->"name" . "!");
}
+ :if ($SchedulerVal->"name" != "global-scripts" && \
+ $SchedulerVal->"start-time" = "startup" && \
+ $SchedulerVal->"interval" = 0s && \
+ [ :pick ($SchedulerVal->"on-event") 0 7 ] != ":delay ") do={
+ :log warning ("Scheduler " . $SchedulerVal->"name" . " starts on startup, " . \
+ "without interval. Add delay to make sure the configuration is available!");
+ }
}
:if ([ :len $SourceNew ] = 0 && $ScriptUpdatesFetch = true) do={