From 7ecda2204fa5ee69996ab579c89bdf87e175686c Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 27 May 2020 00:13:57 +0200 Subject: early-errors: wait to be fully connected --- doc/early-errors.md | 2 +- early-errors | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/early-errors.md b/doc/early-errors.md index adae531..f6209b7 100644 --- a/doc/early-errors.md +++ b/doc/early-errors.md @@ -25,7 +25,7 @@ Just install this script and [global-wait](global-wait.md): ... and add a scheduler: - / system scheduler add name=early-erros on-event=":global WaitFullyConnected; / system script { run global-wait; \$WaitFullyConnected; run early-errors; }" start-time=startup; + / system scheduler add name=early-erros on-event="/ system script { run global-wait; run early-errors; }" start-time=startup; Configuration ------------- diff --git a/early-errors b/early-errors index f2793fc..a48c3cd 100644 --- a/early-errors +++ b/early-errors @@ -8,6 +8,9 @@ :global Identity; :global SendNotification; +:global WaitFullyConnected; + +$WaitFullyConnected; :local Errors [ / log find where (topics~"error" or topics~"critical") !(topics~"e-mail") !(topics~"dns") ]; :local ErrCount [ :len $Errors ]; -- cgit v1.2.3-54-g00ecf