Unverified Commit 2174b6ac authored by Sander's avatar Sander
Browse files

rabbitmq-server: fix management agent crash when calling ps on macOS

When built with procps in the runtime path, the
rabbitmq_management_agent repeatedly crashes trying to call `ps -o
rss=`. It errors out with: `rss: requires entitlement`.

This PR uses the built-in ps on macOS instead. I imagine it's
signed with the correct entitlements.
parent a80e3605
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -33,12 +33,14 @@ let
      erlang
      getconf # for getting memory limits
      socat
      procps
      gnused
      coreutils # used by helper scripts
    ]
    ++ lib.optionals stdenv.hostPlatform.isLinux [ systemd ]
  ); # for systemd unit activation check
    ++ lib.optionals stdenv.hostPlatform.isLinux [
      procps # the built-in macOS version has extra entitlements to read rss
      systemd # for systemd unit activation check
    ]
  );
in

stdenv.mkDerivation rec {