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

Allow shared service drop-in directory #681

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gsauthof
Copy link
Contributor

Systemd reads all conf files from a service drop-in directory and merges them.

This change enables the following use case:

Tuning unrelated but local changes can be put into - say:

/etc/systemd/system/sfptpd.service.d/local.conf

while a simple tuning such as the process affinity mask is rolled out via a tuned profile, like this:

tuned.conf snippet:

[service]
service.sfptpd=,file:${i:PROFILE_DIR}/tuned-sfptpd.conf

tuned-sfptpd.conf:

[Service]
CPUAffinity=32

Arguably, this is a natural change, i.e. it establishes symmetry in cfg_install() to cfg_uninstall(), because cfg_uninstall() already allows for the service drop-in directory not being empty.

Systemd reads all conf files from a service drop-in directory and merges
them.

This change enables the following use case:

Tuning unrelated but local changes can be put into - say:

    /etc/systemd/system/sfptpd.service.d/local.conf

while a simple tuning such as the process affinity mask is rolled out
via a tuned profile, like this:

`tuned.conf` snippet:

```
[service]
service.sfptpd=,file:${i:PROFILE_DIR}/tuned-sfptpd.conf
```

`tuned-sfptpd.conf`:

```
[Service]
CPUAffinity=32
```

---

Arguably, this is a natural change, i.e. it establishes symmetry in
`cfg_install()` to `cfg_uninstall()`, because `cfg_uninstall()` already
allows for the service drop-in directory not being empty.
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