Added support for INCLUDE_DIR and SEQUENCE_FILE#95
Open
Vbrawl wants to merge 3 commits into
Open
Conversation
INCLUDE_DIR points to a directory with service configs. A service config is a normal config, just without support for the [options] section.
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.
SEQUENCE_FILE points to a file that contains a sequence.
INCLUDE_DIR points to a directory with service configs.
A service config is a normal config file, just without support for the [options] section.
This allows for dynamic configuration of different services.
Why that's important?
A package may want to add optional knockd configuration without altering the default one.
An administrator can organize their config files.
A program can add new doors at runtime by placing them in the directory and trigger a reload.
For example:
If a package like ssh decided to add a knockd entry it can just drop a ssh.conf to /etc/knockd.conf.d (assuming include_dir in the main config is set to that).
Then trigger a post-install command that reloads knockd.
SEQUENCE_FILE can help with user-defined sequences that persist between updates or whatever.