diff options
author | Christian Hesse <mail@eworm.de> | 2019-09-03 20:36:13 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-09-11 12:36:47 +0200 |
commit | c7c5da2eca693db96518f5cef92fa5374d2415a9 (patch) | |
tree | b7c9a0834dd9d931006ffd94e37b25b22b6e5903 | |
parent | a7c498a90e5319e876eddadd37f3caa7ef278c41 (diff) |
README: add just one scheduler for global scripts
-rw-r--r-- | README.md | 5 | ||||
-rw-r--r-- | initial-commands | 5 |
2 files changed, 3 insertions, 7 deletions
@@ -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; }" } |