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

config files: clean up the example #127

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions specs/configuration_files_specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,14 @@ The drop-ins that are later in this order have higher precedence.

Considering the following files are present on the filesystem, this would be the order in which the
files are parsed. Note, that files with the same name override each other. The configuration in
`bar.conf` has the lowest priority, and is overridden by `a.conf` and `b.conf`.`b.conf` has the
highest priority.

```
/usr/lib/foo/bar.conf
/etc/foo/bar.conf (overrides /usr/lib/foo/bar.conf)
/usr/lib/foo/bar.conf.d/a.conf
/etc/foo/bar.conf.d/a.conf (/usr/lib/foo/bar.conf.d/a.conf)
/usr/lib/foo/bar.conf.d/b.conf
```
`bar.conf` has the lowest priority, and is read before `a.conf` and `b.conf`. `b.conf` has the
highest priority:

- ~~`/usr/lib/foo/bar.conf`~~ (overridden by `/etc/foo/bar.conf`)
- `/etc/foo/bar.conf`
- ~~`/usr/lib/foo/bar.conf.d/a.conf`~~ (overridden by `/etc/foo/bar.conf.d/a.conf`)
- `/etc/foo/bar.conf.d/a.conf`
- `/usr/lib/foo/bar.conf.d/b.conf`

If a config file is masked, drop-ins must still be parsed, unless they are masked
themselves.
Expand Down
Loading