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

Fix rmilter socket path, add deprecation notice #47180

Merged
merged 2 commits into from Sep 24, 2018
Merged

Conversation

avnik
Copy link
Contributor

@avnik avnik commented Sep 22, 2018

Motivation for this change

Putting socket and pid file in same workdir cause problem, so I moved socket out of workdir.
Also as rmilter is no more recomended (use built-in rspamd milter instead), deprecation notice was added.

/cc @samueldr this commits suggested for release-18.09 branch

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • 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 nox --run "nox-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)
  • Fits CONTRIBUTING.md.

/run/rmilter is set by systemd, and have root:root ownership, which
prevent pid file to write.

This fix suggested to be promoted to 18.09 branch.
(Although rmilter itself is deprecated, and I plan to remove it, after
18.09 would be released)
@joachifm
Copy link
Contributor

See also #46637

@@ -193,6 +193,9 @@ in
config = mkMerge [

(mkIf cfg.enable {
warnings = [
''`config.serivces.rmilter' is deprecated, `rmilter' deprecated and unsupported by upstream, and would be removed from next releases ''
Copy link
Member

Choose a reason for hiding this comment

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

config.services.rmilter and will be removed.

@avnik
Copy link
Contributor Author

avnik commented Sep 23, 2018 via email

@Mic92
Copy link
Member

Mic92 commented Sep 24, 2018

If you are going to remove rmilter before the 19.03 release, we should backport both commits right?

@avnik
Copy link
Contributor Author

avnik commented Sep 24, 2018 via email

@Mic92 Mic92 merged commit 5e5cd96 into NixOS:master Sep 24, 2018
@Mic92
Copy link
Member

Mic92 commented Sep 24, 2018

backport: 4307b37 and 1a159fe

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.

None yet

4 participants