-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
sshd: Add restartTrigger for sshd_config #53050
Conversation
Care needs to be taken. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@volth I see, thanks. This looks good to me then.
@@ -387,6 +387,10 @@ in | |||
Restart = "always"; | |||
Type = "simple"; | |||
}); | |||
|
|||
restartTriggers = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure this works?
I believe restartTriggers
should be an attribute of service
(one level up), not of serviceConfig
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, it should probably be and attribute of service
instead of serviceConfig
.
How about I close this and someone merges #48658.
Co-Authored-By: Franz Pletz <fpletz@fnordicwalking.de>
06f7e65
to
325e314
Compare
Rebased, fixed and only adding the |
Motivation for this change
Changing sshd options (e.g. via extraConfig) does not restart the ssh service, currently.
IMO this is expected behaviour, which this fixes.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)