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 erlang
getconf # for getting memory limits getconf # for getting memory limits
socat socat
procps
gnused gnused
coreutils # used by helper scripts coreutils # used by helper scripts
] ]
++ lib.optionals stdenv.hostPlatform.isLinux [ systemd ] ++ lib.optionals stdenv.hostPlatform.isLinux [
); # for systemd unit activation check procps # the built-in macOS version has extra entitlements to read rss
systemd # for systemd unit activation check
]
);
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {