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

systemd unit: ReadWritePaths semantically not best choice #476

Open
paulmenzel opened this issue Apr 27, 2021 · 4 comments
Open

systemd unit: ReadWritePaths semantically not best choice #476

paulmenzel opened this issue Apr 27, 2021 · 4 comments

Comments

@paulmenzel
Copy link
Contributor

User damjan in #systemd@irc.freenode.net commented, that instead of ReadWritePaths=, one of the directives below could be used depending on the type of data.

  1. StateDirectory=
  2. RuntimeDirectory=
  3. CacheDirectory=

Then systemctl clean UNIT would also work.

@paulmenzel paulmenzel changed the title systemd units: ReadWritePaths semantically not best choice systemd unit: ReadWritePaths semantically not best choice Apr 27, 2021
@Maryse47
Copy link
Contributor

StateDirectory/RuntimeDirectory are already used in service but they aren't interchangeable with currently set ReadWritePaths (see comments in #477 ). I don't see better choice right now.

@ArchangeGabriel
Copy link
Contributor

@paulmenzel Was the IRC user specifically writing about unbound? Because the way things work, the current file is perfectly fine and there nothing that can be done better to the best of my knowledge.

@paulmenzel
Copy link
Contributor Author

As far as I remember, the current behavior of using /etc stands in the way of making Unbound more “standards compliant”.

@ArchangeGabriel
Copy link
Contributor

Using /etc for what? For unbound.conf, that’s the expected spot AFAIK. For storing the root key maybe not, but this is heavily linked to the way chrooting is done AFAICS (needing the root key file and the config file in the chroot). This could be changed by using systemd for chrooting (and its automagic for bindmounting relevant files/path) I think, but might require adjustment for systems without systemd.

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

No branches or pull requests

3 participants