diff options
author | Christian Hesse <mail@eworm.de> | 2020-05-27 00:13:57 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-05-27 00:13:57 +0200 |
commit | 7ecda2204fa5ee69996ab579c89bdf87e175686c (patch) | |
tree | 87d918a1732c6f0eb3caf894f3afce18a8074a5a | |
parent | 6a50e80825cb99903968935f1932b77ae7e32886 (diff) |
early-errors: wait to be fully connected
-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 ]; |