Hi,
I have setup a startup scheduled script but it’s simple not running and I can’t really figure out why
The interval is set to zero, but the run count always fails
/system/scheduler/print where interval=0
Columns: NAME, START-DATE, START-TIME, INTERVAL, ON-EVENT, RUN-COUNT
# NAME START-DATE START-TIME INTERVAL ON-EVENT RUN-COUNT
0 initializeGlobals 2023-07-02 11:38:57 0s initializeGlobals 0
The initializeGlobals global scripts is there and if I run it manually it works
I’ve also tried the alternative “/system/script run initializeGlobals” in the ON-EVENT with the same result.
I’m obvious doing something very wrong but whatever I tried it never works.
I thought it could the order. So I deleted all schedules and recreated them with the startup being the same but no help
/system/scheduler/print where interval=0s
Columns: NAME, START-DATE, START-TIME, INTERVAL, ON-EVENT, RUN-COUNT
# NAME START-DATE START-TIME INTERVAL ON-EVENT RUN-COUNT
0 initializeGlobals 2023-07-02 00:00:00 0s initializeGlobals 0
Also tried this, to see if it was because I was calling a script
1 name="schedule1" start-date=2023-07-02 start-time=12:27:01 interval=0s on-event=:global test 0 owner="admin"
policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon run-count=0
This is happening on routeros 7.10.1
What I’m doing wrong?
I can see that version 7.10 has this on the backlog
“scheduler - fixed incorrectly started scheduler during reboot or shutdown”
Could it be related? Probably not I’ve tried this on version 7.9.2 and it has the same behavior.
Thank you
P.S I’ve checked and all scripts have the reboot policy enabled as well