Repository navigation
nixos/nordvpn: order nordvpnd after its socket - #580056
Merged
Merged
Conversation
Contributor
Author
|
@different-error could you take a look? This also explains the nordvpnd.socket failures after switching. Side note: the bot couldn’t request your review since you’re not in nixpkgs maintainer yet |
Contributor
|
I think you can remove most of the description in your commit message. The commit's title contains sufficient information. Remove: |
novalkun
force-pushed
the
nordvpn-socket-requires
branch
from
October 29, 2026 11:39
3294c64 to
e332112
Compare
Contributor
Author
Done, thanks. |
Contributor
This appears as the more common pattern. Please replace. |
Contributor
Ty. |
Assisted-by: Claude Code (Claude Opus 5.5)
novalkun
force-pushed
the
nordvpn-socket-requires
branch
from
October 29, 2026 12:52
e332112 to
7100706
Compare
Contributor
Author
thanks. can it be approved? |
7 of 13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requires = "nordvpnd.socket"sat inserviceConfig, so it ended up in[Service], where systemd ignores it (Unknown key 'Requires' in section [Service], ignoring). Without a dependency on or ordering against its socket, and withwantedBy = [ "default.target" ], activation could startnordvpndbeforenordvpnd.socket. The socket then refused to start (Socket service nordvpnd.service already active, refusing) andnixos-rebuild switchfailed. This moves it torequires/afterat the unit level.Reproducer:
systemctl stop nordvpnd.socket nordvpnd.service && systemctl start nordvpnd.serviceleaves the socket inactive before this change and active after it.This touches the same module as #576413.
AI disclosure: the change, commit message and this description were drafted with Claude Code (Opus 5.5); I reviewed them and tested as below.
Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.switch-to-configuration testto a system with this change, the reproducer above, and reverting.