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 service file in wrong directory #51

Closed
alteholz opened this issue Jan 16, 2022 · 1 comment · Fixed by #50
Closed

systemd service file in wrong directory #51

alteholz opened this issue Jan 16, 2022 · 1 comment · Fixed by #50

Comments

@alteholz
Copy link

When preparing the Debian package of lprint, lintian complains:
E: lprint: systemd-service-file-outside-lib etc/systemd/system/lprint.service
N:
N: The package ships a systemd service file outside /lib/systemd/system/
N:
N: Systemd in Debian searches for unit files in /lib/systemd/system/ and
N: /etc/systemd/system. Notably, it does not look in
N: /usr/lib/systemd/system/ for service files.
N:
N: System administrators should have the possibility to overwrite a
N: service file (or parts of it, in newer systemd versions) by placing a
N: file in /etc/systemd/system, so the canonical location used for
N: service files is /lib/systemd/system/.

Do you mind changing the directory of the service file to /lib/systemd/system?

Thorsten

@zdohnal
Copy link
Contributor

zdohnal commented Jan 17, 2022

Hi @alteholz ,

I have PR #50 for tackling this - currently with solution to use %{prefix}/lib/systemd/system by default, but you can pass a path on your own. The prefix is usually set by passing --prefix to configuration script, or /usr/local by default.

@michaelrsweet michaelrsweet linked a pull request Jan 18, 2022 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.

2 participants