Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check-routeros-update and other similar scripts suggested scheduler time #56

Closed
bubenkoff opened this issue Jan 25, 2024 · 12 comments
Closed

Comments

@bubenkoff
Copy link
Contributor

In the check-routeros-update script's docs, it's suggested to use the 'startup' time of the script to be scheduled.
For such actions, it seems more logical to schedule it at night instead, as the update shouldn't normally happen in the busy time.

@eworm-de
Copy link
Owner

The primary intend here is to notify the user on update. If device is configured to install updates automatically it may make sense to schedule at night. You are free to change that to your needs.

@bubenkoff
Copy link
Contributor Author

bubenkoff commented Jan 25, 2024 via email

@eworm-de
Copy link
Owner

Hmm, we have a mechanism to schedule the reboot at night... Perhaps we should just add a confirmation option to always schedule the reboot on automated update?

@bubenkoff
Copy link
Contributor Author

bubenkoff commented Jan 25, 2024 via email

@eworm-de
Copy link
Owner

Yes. Packages are installed immediately, and reboot is scheduled if configured - just like you do when running packages-update interactively from terminal.

There is another reason I want the check to be scheduled after startup: I want to avoid making all devices in a network to download the packages at the exact time. Scheduling that way is easy to achieve it.

@bubenkoff
Copy link
Contributor Author

bubenkoff commented Jan 25, 2024 via email

@eworm-de
Copy link
Owner

Pushed changes to the next branch... Do you want to give it a try?

@bubenkoff
Copy link
Contributor Author

bubenkoff commented Jan 26, 2024 via email

@bubenkoff
Copy link
Contributor Author

bubenkoff commented Jan 26, 2024 via email

@bubenkoff
Copy link
Contributor Author

@eworm-de the router got autoupdated last night, and the :global PackagesUpdateDeferReboot true; in the config didn't seem to defer the upgrade, it seemed to reboot right away when the script was scheduled (2 am).
Is it a good idea to add some logging so that we can see that the defer really happens?

@eworm-de
Copy link
Owner

eworm-de commented Feb 8, 2024

There is logging, it gives something like:

script,info packages-update: Scheduled reboot for update at 03:25:44 local time (Europe/Berlin).

And it works for me.

@bubenkoff
Copy link
Contributor Author

Ok thanks, maybe I've missed it indeed, as I only have a memory log there.
I think I'll add packages-update to the log forwarding to monitor it better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants