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

Feature-request: Allow the -n switch to have a argument to update if last update is more than X seconds ago #88

Open
tuxis-ie opened this issue Mar 8, 2019 · 1 comment
Milestone

Comments

@tuxis-ie
Copy link

tuxis-ie commented Mar 8, 2019

I have a script that runs routinator and then creates config based on the json output. It currently updates everything, including rsync. I can check the age of the current data in the script, but it might be useful for other users as well if the '-n' switch has an optional argument. If the age of the data is mode than 'argument' seconds old, update it, otherwise, use the current data.

@partim
Copy link
Member

partim commented May 27, 2019

I’d love to add this, but unfortunately, Routinator doesn’t keep any state about when it last updated. It would have to walk over all the files in the local repository to somewhat reliably determine, when the last update might have happened. This might be better done via a script like you do already?

@partim partim added this to the 0.12.0 milestone Jul 20, 2022
@partim partim modified the milestones: 0.12.0, 0.13.0 Oct 17, 2022
@partim partim modified the milestones: 0.13.0, 0.14.0 May 19, 2023
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