-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
headscale.service location #1359
Comments
You are correct on this. |
I guess it depends on the linux version and OS, I'm not so familiar with Linux, did you know how is it on other OSes? |
I know this is the packaging convention on Debian-, RedHat-, and Arch-Families. macOS would use a different init system |
It's standard across systemd-based systems.
src: https://www.freedesktop.org/software/systemd/man/systemd.unit.html tldr: it's all about precedence. Use /usr/lib/systemd to allow users to override things if they desire in a clean way. |
@jonathanspw I think you're already working on the RPM package build, as I'm not familiar with Linux, can you make a pull request for this or at least make the changes on the .rpm ? |
It's already correct in the RPMs. PRd to fix the |
Oh, I supposed that the error was everywhere, nice job ^^ |
@zoenglinghou You can close your Issue, @jonathanspw Got ya ! |
When the PR is merged it will close it automatically :) |
Thanks @jonathanspw |
Bug description
headscale.service
should not be installed to/etc/systemd/system
To Reproduce
Context info
It is my understanding that systemd
unit
files from a package should be installed to/usr/lib/systemd/system
, and would be symlinked to/etc/systemd/system
uponsystemctl enable
. Sometimes thepostinst
andprerm
would handle the service enabling and stopping too.The text was updated successfully, but these errors were encountered: