From 5316ec6ef5fca34cf8c9f49fe9a82a90f1c47b12 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 24 Feb 2020 19:23:32 +0100 Subject: script-updates: warn on scheduler at startup with no interval --- script-updates | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'script-updates') 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={ -- cgit v1.2.3-70-g09d2