diff options
| -rw-r--r-- | src/rabbit.erl | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index 315955657c..def466701a 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -289,10 +289,14 @@ broker_start() -> Plugins = rabbit_plugins:setup(), ToBeLoaded = Plugins ++ ?APPS, start_apps(ToBeLoaded), - %% Only for systemd unit with Type=notify. Errors are intentionally - %% ignored: either you have working systemd-notify(1) or you don't - %% care about systemd at all. - os:cmd("systemd-notify --ready"), + case os:type() of + {win32, _} -> ok; + _ -> + %% Only for systemd unit with Type=notify. Errors are intentionally + %% ignored: either you have working systemd-notify(1) or you don't + %% care about systemd at all. + os:cmd("systemd-notify --ready") + end, ok = log_broker_started(rabbit_plugins:active()). start_it(StartFun) -> |
