Skip to content

Added support for INCLUDE_DIR and SEQUENCE_FILE#95

Open
Vbrawl wants to merge 3 commits into
jvinet:masterfrom
Vbrawl:master
Open

Added support for INCLUDE_DIR and SEQUENCE_FILE#95
Vbrawl wants to merge 3 commits into
jvinet:masterfrom
Vbrawl:master

Conversation

@Vbrawl
Copy link
Copy Markdown

@Vbrawl Vbrawl commented Apr 29, 2026

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.

Vbrawl added 3 commits April 29, 2026 17:24
INCLUDE_DIR points to a directory with service
configs.

A service config is a normal config, just
without support for the [options] section.
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

Successfully merging this pull request may close these issues.

1 participant