From c7c5da2eca693db96518f5cef92fa5374d2415a9 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 3 Sep 2019 20:36:13 +0200 Subject: README: add just one scheduler for global scripts --- README.md | 5 ++--- initial-commands | 5 +---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 588e827..3165684 100644 --- a/README.md +++ b/README.md @@ -92,12 +92,11 @@ your mails to `mail@example.com`! [admin@MikroTik] > / system script edit global-config source -And finally load configuration and functions and add the schedulers. +And finally load configuration and functions and add the scheduler. [admin@MikroTik] > / system script run global-config [admin@MikroTik] > / system script run global-functions - [admin@MikroTik] > / system scheduler add name="global-config" start-time=startup on-event="/ system script run global-config;" - [admin@MikroTik] > / system scheduler add name="global-functions" start-time=startup on-event="/ system script run global-functions;" + [admin@MikroTik] > / system scheduler add name="global-scripts" start-time=startup on-event="/ system script { run global-config; run global-functions; }" Updating scripts ---------------- diff --git a/initial-commands b/initial-commands index f8dd825..335dbad 100644 --- a/initial-commands +++ b/initial-commands @@ -22,8 +22,5 @@ run global-config; run global-functions; } - / system scheduler { - add name="global-config" start-time=startup on-event="/ system script run global-config;"; - add name="global-functions" start-time=startup on-event="/ system script run global-functions;"; - } + / system scheduler add name="global-scripts" start-time=startup on-event="/ system script { run global-config; run global-functions; }" } -- cgit v1.2.3-54-g00ecf