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 setup #23

Open
ekohl opened this issue Mar 16, 2023 · 0 comments · May be fixed by #24
Open

Systemd setup #23

ekohl opened this issue Mar 16, 2023 · 0 comments · May be fixed by #24

Comments

@ekohl
Copy link

ekohl commented Mar 16, 2023

In ekohl/puppet-restic#1 I started to write my own module before I found yours. It's mostly based on https://tdem.in/post/restic-with-systemd/ and that uses an interesting approach, which I like a lot more than yours.

It uses a restic@.service so you end up with restic@repo.service. Then if you do need to override anything, you can use a drop in file instead of changing the whole service. I think that's much more native than creating many services.

Another thing is that it uses AmbientCapabilities=CAP_DAC_READ_SEARCH so the user can read all files, like root does. This means the service can run with a regular user instead of root.

Would you be open to changing to this approach?

@ekohl ekohl linked a pull request Apr 7, 2023 that will close this issue
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 a pull request may close this issue.

1 participant