Skip to content
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

nixos/sshguard: restart sshguard when services/backend changes #120324

Merged
merged 1 commit into from
Apr 23, 2021

Conversation

pennae
Copy link
Contributor

@pennae pennae commented Apr 23, 2021

backends changing shouldn't be very likely, but services may well change. we
should restart sshguard from nixos-rebuild instead of merely plopping down a new
config file and waiting for the user to restart sshguard.

Motivation for this change

fix #120282

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

backends changing shouldn't be very likely, but services may well change. we
should restart sshguard from nixos-rebuild instead of merely plopping down a new
config file and waiting for the user to restart sshguard.
Copy link
Member

@aanderse aanderse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 You tested this revision, right?

@pennae
Copy link
Contributor Author

pennae commented Apr 23, 2021

LGTM +1 You tested this revision, right?

yup. (and retested just now, just to be sure.)

@aanderse
Copy link
Member

Thanks for your contribution.

@aanderse aanderse merged commit 5f2a8de into NixOS:master Apr 23, 2021
symphorien added a commit to symphorien/nixpkgs that referenced this pull request Apr 24, 2021
X-ReloadIfChanged is incorrect, apparently NixOS#120324 (comment)
We restart instead of reloading because nagios unit file has no
ExecReload.
@pennae pennae deleted the restart-sshguard branch May 1, 2021 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sshguard is not restarted when services.sshguard.services changes
2 participants