-
Notifications
You must be signed in to change notification settings - Fork 43
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
fix: RHEL compatibility for systemd service ordering #100
Conversation
Thanks for your PR! I searched for service files that included by popular projects, and I found sing-box and Xray are still using And in https://systemd.io/NETWORK_ONLINE/ they are also using Are they facing the same problem? |
Sometimes. In reality, Due to So in conclusion, all these systemd service files, including the one in this project, they all work. Just might not be the most optimal ones, and make less sense. |
Fair enough. BTW I asked ChatGPT for the support starting time in multiple distros:
It looks like network-online.target has not been supported for a long time, should we add a comment in service file pointing to this issue to help users who uses extreme old Linux distros and faces some problem caused by this? Although I don't think it's very likely that anyone would use this example service we provided LOL |
I also asked Bing AI and Bard for this, and they're all giving answers that are different from each other's though. A comment is good to have.
You got the point. |
Merged. Thanks again for your PR and your patience! |
On RHEL-based Linux distros,
nss-lookup.target
is deprecated and remainsinactive (dead)
forever by default.This pull request replaces its usage in the service file with
network-online.target
, which is reached when the network is "up", and is also available on Debian-based distros. More information can be found at https://systemd.io/NETWORK_ONLINE/.