diff options
| -rw-r--r-- | src/rabbit.erl | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index fdebf81eef..b41813e55d 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -289,11 +289,10 @@ broker_start() -> Plugins = rabbit_plugins:setup(), ToBeLoaded = Plugins ++ ?APPS, start_apps(ToBeLoaded), - case code:load_file(sd_notify) of - {module, sd_notify} -> SDNotify = sd_notify, - SDNotify:sd_notify(0, "READY=1"); - {error, _} -> os:cmd("systemd-notify --ready") - end, + %% 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") ok = log_broker_started(rabbit_plugins:active()). start_it(StartFun) -> |
