Repository navigation
nixos/switch-to-configuration: restart changed socket units - #73871
Merged
Merged
Conversation
domenkozar
reviewed
Nov 21, 2019
Member
|
It's not clear to me how this relates to #71095, but I think there's no need to extend scope. The fix already improves socket handling, any further improvements can be done with whoever does them later on :) |
Member
|
This question was more of a in-context heads-up. Of course doesn't need to stall this PR :-)
#71095 changed .socket files for the systemd user session, and I assume those were not properly reloaded/restarted, causing some already running gpg-agents not finding pinentry anymore.
|
Previously, socket units wouldn't be restarted if they were changed. To restart the socket, the service the socket is attached to needs to be stopped first before the socket can be restarted.
lheckemann
force-pushed
the
socket-activation-fix
branch
from
November 25, 2019 13:44
5bce80e to
89806e9
Compare
This was referenced Nov 26, 2019
Member
|
Unfortunately this causes severe regressions by restarting systemd services that should not be restarted, e.g. See #74626 for more details. |
Member
|
Reverted in master until that's fixed. |
3 of 10 tasks
primeos
added a commit
to primeos/nixpkgs
that referenced
this pull request
Nov 27, 2021
…proved-socket-handling2" This reverts commit 57961d2, reversing changes made to b04f913. (I.e. this reverts PR NixOS#141192.) While well-intended, this change does unfortunately introduce very serious regressions that are especially disruptive/noticeable on desktop systems (e.g. users of Sway will loose their graphical session when running "nixos-rebuild switch"). Therefore, this change has to be reverted ASAP instead of trying to fix it in "production". Note: An updated version should be extensively discussed, reviewed, and tested before re-landing this change as an earlier version also had to be reverted for the exact same issues [0]. Fix: NixOS#146727 [0]: NixOS#73871 (comment)
3 of 13 tasks
github-actions Bot
pushed a commit
that referenced
this pull request
Nov 27, 2021
…d-socket-handling2" This reverts commit 57961d2, reversing changes made to b04f913. (I.e. this reverts PR #141192.) While well-intended, this change does unfortunately introduce very serious regressions that are especially disruptive/noticeable on desktop systems (e.g. users of Sway will loose their graphical session when running "nixos-rebuild switch"). Therefore, this change has to be reverted ASAP instead of trying to fix it in "production". Note: An updated version should be extensively discussed, reviewed, and tested before re-landing this change as an earlier version also had to be reverted for the exact same issues [0]. Fix: #146727 [0]: #73871 (comment) (cherry picked from commit 1cfecb6)
mkg20001
pushed a commit
to mkg20001/nixpkgs
that referenced
this pull request
Nov 29, 2021
…proved-socket-handling2" This reverts commit 57961d2, reversing changes made to b04f913. (I.e. this reverts PR NixOS#141192.) While well-intended, this change does unfortunately introduce very serious regressions that are especially disruptive/noticeable on desktop systems (e.g. users of Sway will loose their graphical session when running "nixos-rebuild switch"). Therefore, this change has to be reverted ASAP instead of trying to fix it in "production". Note: An updated version should be extensively discussed, reviewed, and tested before re-landing this change as an earlier version also had to be reverted for the exact same issues [0]. Fix: NixOS#146727 [0]: NixOS#73871 (comment)
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.
Motivation for this change
The bugfix part of #50340
Things done
cc author @fpletz