How to restart rabbitmq-server after a crash, with systemd?

683 views
Skip to first unread message

Salvatore Iovene

unread,
Nov 7, 2017, 11:41:46 AM11/7/17
to rabbitmq-users
Hi,
I run rabbitmq-server on Ubuntu 16.04, and I have experienced a rare, occasional crash. When that happens, many functionalities on my website become unavailable, so this is of course undesirable.

Can anyone advice on how to automatically restart the service after a crash, with systemd (I suppose)?

Thanks!
Salvatore

Michael Klishin

unread,
Nov 9, 2017, 6:00:05 AM11/9/17
to rabbitm...@googlegroups.com
It's hard to recommend much without server logs and further details.

When packages are used, the only right way of managing a node is via OS-specific
process management tools (as opposed to `rabbitmqctl stop`, for example).

In other words, `service rabbitmq-server start` is what you want, which should use systemctl under the hood
on your distribution.

systemd can do this for you if you modify your service file:

I'd highly recommend monitoring your system and inspecting logs to find out what happens to the node
as opposed just restarting it:



--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages