-
-
Notifications
You must be signed in to change notification settings - Fork 227
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 unit file location #414
Comments
closes TryGhost#414 - change location to /etc/systemd/system - ensure uninstall will delete from either location
closes TryGhost#414 - change location to /etc/systemd/system - ensure uninstall will delete from either location
closes TryGhost#414 - change location to /etc/systemd/system - ensure uninstall will delete from either location
@mlewe Not sure if you know a better solution for this - I was testing putting the file in /etc/systemd/system and got a "too many links" error when I tried to run |
The document that @mlewe linked to doesn't even list
The ubuntu docs list I've seen reports that enable isn't working on Debian because /lib/systemd/system is the wrong place and it should be in /etc/, but the debian docs list 3 options with no clear distinctions other than the type of package that might live there:
I haven't yet found any good, canonical (lol) resources for what is happening here, and what the best practices are, but I don't think changing this from lib to etc is the right thing for the default Ubuntu stack. Think this needs further investigation. |
I tried to reproduce that by creating a unit file Regarding the comment on the Ubuntu documentation, here they list
with |
Oops, didn't realize that the PR would close it 😬 |
I'm running into an issue with systemd and one of my ghost installs. Can't run I've removed any lingering |
Disregard. After looking at "extension": {
"systemd": false
} and |
@hao-lee the point of this issue is to switch the location of the file to /etc/systemd/system 😄 there's just a couple of other things that need to be in place first in order for it to work. |
After reading some document, I think Ghost create a symbolic link under |
Finally I find the reason HERE. It's a bug of systemd when using They suggest to use |
I replace line 88 in
But I don't know whether can this works for everyone. |
Our bot has automatically marked this issue as stale because there has not been any activity here in some time. The issue will be closed soon if there are no further updates, however we ask that you do not post comments to keep the issue open if you are not actively working on a PR. We keep the issue list minimal so we can keep focus on the most pressing issues. Closed issues can always be reopened if a new contributor is found. Thank you for understanding 🙂 |
This issue is a
Summary
ghost-cli creates systemd unit files in
/lib/systemd/system/
.According to my understanding the directory
/lib/systemd/system/
is intended for system-supplied unit files, i.e. those installed by the package manager of the distribution.In contrast to that the directory
/etc/systemd/system/
is intended for local machine-specific unit files (see here). I feel that the unit files installed by ghost-cli clearly fall in the local and machine-specific category and I was surprised to see them end up in/lib/systemd/system/
.This is more of a minor complaint than a proper bug report, but I think it would be good to follow best practices.
Technical details (will be automatically output by Ghost-CLI if an error occurs):
The text was updated successfully, but these errors were encountered: