diff options
-rw-r--r-- | doc/early-errors.md | 2 | ||||
-rw-r--r-- | early-errors | 3 |
2 files changed, 4 insertions, 1 deletions
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 ]; |