Skip to content

Commit

Permalink
config files: clean up the example
Browse files Browse the repository at this point in the history
  • Loading branch information
keszybz committed Oct 28, 2024
1 parent ff86292 commit 6337f59
Showing 1 changed file with 8 additions and 10 deletions.
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

0 comments on commit 6337f59

Please sign in to comment.