diff options
| author | Michael Klishin <michael@novemberain.com> | 2016-01-22 17:34:10 +0300 |
|---|---|---|
| committer | Michael Klishin <michael@novemberain.com> | 2016-01-22 17:34:10 +0300 |
| commit | 12ee9f0180d80963d65b058f2663545a81859e67 (patch) | |
| tree | a245b2b2c476515d5ec42da15f40d73e790a1023 /src/rabbit.erl | |
| parent | 76e19344a3cf75ab1c2f70b86a5f3f101592eceb (diff) | |
| parent | dbc910bdcd3a5ac47695a3d9c1375cc93fe943d4 (diff) | |
| download | rabbitmq-server-git-12ee9f0180d80963d65b058f2663545a81859e67.tar.gz | |
Merge pull request #574 from binarin/rabbitmq-server-get-rid-of-sd_notify
Remove mentions of `sd_notify` library
Diffstat (limited to 'src/rabbit.erl')
| -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) -> |
