Repository navigation
Conversation
Rebuilding the domain sets from cron needs two settings today: the PBR_DNSPREFETCH_MODE=standalone variable in the cron line, and _dnsprefetch_flush_sets='1' edited into pbr.user.dnsprefetch. The second does not survive an upgrade, because the file is not a conffile. Add '/etc/init.d/pbr dnsprefetch', which runs the file in standalone mode, and a dnsprefetch_flush_sets option in the config section that turns the flush on. A nightly rebuild then takes: uci set pbr.config.dnsprefetch_flush_sets='1'; uci commit pbr 0 4 * * * /etc/init.d/pbr dnsprefetch Without the option a standalone run only tops up the sets, as before, and without the cron line nothing runs: the prefetch on start and reload is unchanged. Calling the file directly with PBR_DNSPREFETCH_MODE still works. tests/06_shell_wrapper/05_dnsprefetch_command.sh covers the command. Signed-off-by: Andrea Pesaresi <andreapesaresi82@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add '/etc/init.d/pbr dnsprefetch', which runs the file in standalone mode, and a dnsprefetch_flush_sets option in the config section that turns the flush on. A nightly rebuild then takes:
uci set pbr.config.dnsprefetch_flush_sets='1'
uci commit pbr
0 4 * * * /etc/init.d/pbr dnsprefetch
Without the option a standalone run only tops up the sets, as before, and without the cron line nothing runs: the prefetch on start and reload is unchanged. Calling the file directly with PBR_DNSPREFETCH_MODE still works. tests/06_shell_wrapper/05_dnsprefetch_command.sh covers the command.