mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +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
|
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user