mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-24 18:48:37 +02:00
README: add just one scheduler for global scripts
This commit is contained in:
parent
a7c498a90e
commit
c7c5da2eca
2 changed files with 3 additions and 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
|
||||
----------------
|
||||
|
|
|
@ -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; }"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue