Skip to content

Commit fc2cd2b

Browse files
committed
monitoring-plugins: use /run/wrappers/bin/mailq for mailq
instead of /run/wrappers/sendmail Since 25.05 sendmail has started just hanging on my postfix instance (simple nixos mailserver)
1 parent 063f43f commit fc2cd2b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pkgs/by-name/mo/monitoring-plugins/package.nix

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ let
3535
net-snmp
3636
procps
3737
];
38-
39-
mailq = runCommand "mailq-wrapper" { preferLocalBuild = true; } ''
40-
mkdir -p $out/bin
41-
ln -s /run/wrappers/bin/sendmail $out/bin/mailq
42-
'';
4338
in
4439
stdenv.mkDerivation rec {
4540
pname = "monitoring-plugins";
@@ -72,7 +67,7 @@ stdenv.mkDerivation rec {
7267

7368
configureFlags = [
7469
"--libexecdir=${placeholder "out"}/bin"
75-
"--with-mailq-command=${mailq}/bin/mailq"
70+
"--with-mailq-command=/run/wrappers/bin/mailq"
7671
"--with-sudo-command=/run/wrappers/bin/sudo"
7772
];
7873

0 commit comments

Comments
 (0)