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

Put systemd files in one consistent place #35

Closed
benhylau opened this issue Nov 18, 2016 · 2 comments
Closed

Put systemd files in one consistent place #35

benhylau opened this issue Nov 18, 2016 · 2 comments

Comments

@benhylau
Copy link
Member

systemd *.service files are placed in both:

/lib/systemd/system/
/etc/systemd/system/

Put them in one consistent place.

@darkdrgn2k
Copy link
Contributor

darkdrgn2k commented Dec 21, 2017

Basically, files that ships in packages downloaded from distribution repository go into /usr/lib/system/. Modifications done by system administrator (user) go into /etc/systemd/system/. System-specific units override units supplied by vendor. Using drop-ins, you can override only specific parts of unit file, leaving rest to vendor (drop-ins are available since the very beginning of systemd, but were properly documented only in v219; see man systemd.unit).

From what i read we should put them in /etc/systemd/system not /lib as these are not packages.

reference: http://www.freedesktop.org/software/systemd/man/file-hierarchy.html

@benhylau
Copy link
Member Author

Consistent with what I have read earlier. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants