mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
README: add start-time & change interval in scheduler example
Set the interval to once a day, Instead of every 1 hour. Add start-time to start-up. Thereby introducing randomization based on when the user last rebooted there device. As the interval is counted based on last boot time.
This commit is contained in:
parent
444f56f9b4
commit
1d8347d8ea
2 changed files with 2 additions and 2 deletions
Binary file not shown.
|
@ -188,10 +188,10 @@ Scheduler and events
|
||||||
|
|
||||||
Most scripts are designed to run regularly from
|
Most scripts are designed to run regularly from
|
||||||
[scheduler](https://wiki.mikrotik.com/wiki/Manual:System/Scheduler). We just
|
[scheduler](https://wiki.mikrotik.com/wiki/Manual:System/Scheduler). We just
|
||||||
added `check-routeros-update`, so let's run it every hour to make sure not to
|
added `check-routeros-update`, so let's run it daily to make sure not to
|
||||||
miss an update.
|
miss an update.
|
||||||
|
|
||||||
/system/scheduler/add name="check-routeros-update" interval=1h on-event="/system/script/run check-routeros-update;";
|
/system/scheduler/add name="check-routeros-update" interval=1d start-time=startup on-event="/system/script/run check-routeros-update;";
|
||||||
|
|
||||||
![screenshot: schedule script](README.d/11-schedule-script.avif)
|
![screenshot: schedule script](README.d/11-schedule-script.avif)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue