mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 14:32:59 +00:00
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:
parent
a80e3605e5
commit
2174b6acb9
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user