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

Install service file to correct location #14

Open
dbrgn opened this issue Feb 1, 2017 · 3 comments
Open

Install service file to correct location #14

dbrgn opened this issue Feb 1, 2017 · 3 comments

Comments

@dbrgn
Copy link

dbrgn commented Feb 1, 2017

Currently the service file is installed to /lib/systemd/system/, but this directory is not meant for user defined services.

Custom services should be installed to /etc/systemd/system/ instead.

See https://www.freedesktop.org/software/systemd/man/systemd.unit.html

@gonzalocasas
Copy link
Member

@dbrgn: oh very good point; after MakeZurich, I will try to change this without breaking existing installations :)

@dbrgn
Copy link
Author

dbrgn commented Feb 1, 2017

/etc/systemd/system overrides /lib/systemd/system :) Or you could remove the one in /lib if it exists before creating the one in /etc.

@dbrgn
Copy link
Author

dbrgn commented Jun 1, 2017

Actually to be perfectly correct, the target directory should be the value returned by pkg-config systemd --variable=systemdsystemunitdir: https://www.freedesktop.org/software/systemd/man/systemd.html#Directories

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