diff options
| author | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2019-12-16 12:10:21 +0100 |
|---|---|---|
| committer | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2019-12-16 12:11:50 +0100 |
| commit | 592644dd827ae20bffeef700e37e31c47018de4a (patch) | |
| tree | 88ada4f7e9ed61722632116636df74831672384a /src | |
| parent | 58d0e5e81d05698f3778436cb732a352093c6a7b (diff) | |
| download | rabbitmq-server-git-592644dd827ae20bffeef700e37e31c47018de4a.tar.gz | |
rabbit: Notify systemd after marking RabbitMQ as ready
Otherwise, there is a small time window where systemd considers the
service as running, but `rabbit:is_running()` would return false.
For instance, if "rabbitmqctl status" is called during that window, it
would return an error saying that RabbitMQ must be started on the node.
This must be the situation hit during package testing in CI.
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index 0b002618e5..41d4d89e17 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -994,10 +994,10 @@ do_run_postlaunch_phase() -> end end, Plugins), - maybe_sd_notify(), - rabbit_log_prelaunch:debug("Marking RabbitMQ as running"), rabbit_prelaunch:set_boot_state(ready), + maybe_sd_notify(), + ok = rabbit_lager:broker_is_started(), ok = log_broker_started( rabbit_plugins:strictly_plugins(rabbit_plugins:active())) |
