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.
This commit is contained in:
Sander 2024-11-19 20:58:45 +04:00
parent a80e3605e5
commit 2174b6acb9
No known key found for this signature in database
GPG Key ID: D1A763BC84F34603

View File

@ -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 {