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

Provide a systemd flag for "vendor" vs admin #137

Open
jsoref opened this issue Dec 27, 2018 · 4 comments
Open

Provide a systemd flag for "vendor" vs admin #137

jsoref opened this issue Dec 27, 2018 · 4 comments

Comments

@jsoref
Copy link

jsoref commented Dec 27, 2018

elastic/logstash appears to use pleaserun to generate its systemd service (for ubuntu/debian).

Since logstash is being installed from a debian package made by the vendor, the service should end up in /lib/systemd/system.

I saw a flag for -p systemd-user, it might make sense if there was a -p systemd-packager.

@jordansissel
Copy link
Owner

jordansissel commented Dec 27, 2018 via email

@jsoref
Copy link
Author

jsoref commented Dec 27, 2018

/etc is for me, the admin. It represents my customizations/personality added to a system.

If I put something into /etc/systemd/system/kibana.service, I expect it not to be stomped upon by a package.

It also means that I can quickly backup/copy the files that I've created to another system at any time w/o worrying about running into system packages or copying files that I shouldn't because they're owned by packages.

Packages are supposed to go into /lib (technically once debian/ubuntu finish the /usr merge, it'll be /usr/lib/systemd/system -- fedora has already completed that merge).

@jsoref
Copy link
Author

jsoref commented Dec 27, 2018

https://www.digitalocean.com/community/tutorials/understanding-systemd-units-and-unit-files does a fairly good job of explaining the /etc vs /lib distinction

@jsoref
Copy link
Author

jsoref commented Dec 27, 2018

Probably the most important thing is that if you (a package manager) put a file in /etc/systemd/system/something.service then i can't safely use systemctl mask something.mask, because that would more or less delete the only instance of the file you put there.

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

2 participants