FS#55842 - [rabbitmq] service does not stop cleanly due to epmd process
Attached to Project:
Community Packages
Opened by John Ledbetter (ledbettj) - Monday, 02 October 2017, 14:54 GMT
Last edited by Ivy Foster (escondida) - Friday, 11 October 2019, 00:04 GMT
Opened by John Ledbetter (ledbettj) - Monday, 02 October 2017, 14:54 GMT
Last edited by Ivy Foster (escondida) - Friday, 11 October 2019, 00:04 GMT
|
Details
systemd is unable to shutdown rabbitmq cleanly. rabbitmq
shuts itself down, but any epmd process it started will not
exit; as a result, the `systemctl stop` process eventually
times out and kills the epmd process.
I was able to resolve this issue by adding a Requires= and After= dependency on epmd.service in the rabbitmq unit file; in this case, rabbitmq will not start epmd and epmd will persist after rabbit shutdown: john@oberon:~$ cat /etc/systemd/system/rabbitmq.service.d/override.conf [Unit] Requires=epmd.service After=epmd.service I am not a unit-file guru, so unsure if this is entirely correct. Additional info: * rabbitmq 3.6.12-1 Steps to reproduce: systemctl start rabbitmq systemctl stop rabbitmq |
This task depends upon
Closed by Ivy Foster (escondida)
Friday, 11 October 2019, 00:04 GMT
Reason for closing: Fixed
Additional comments about closing: upstreamfixedit, according to OP's last post.
Friday, 11 October 2019, 00:04 GMT
Reason for closing: Fixed
Additional comments about closing: upstreamfixedit, according to OP's last post.
rabbitmq.log
Afterwards its fine to depend on epmd service
Feb 22 12:34:43 anthraxx systemd[1]: Stopping RabbitMQ broker...
Feb 22 12:34:43 anthraxx rabbitmq[12437]: Stopping and halting node rabbit@anthraxx ...
Feb 22 12:34:43 anthraxx rabbitmq[11816]: Gracefully halting Erlang VM
Feb 22 12:34:47 anthraxx systemd[1]: Stopped RabbitMQ broker.
> ps aux | grep rabbitmq|grep -v grep|wc -l
0
> ps aux | grep epmd|grep -v grep|wc -l
0
Before testing, you of cause need to have a clean state once, having no rabbitmq nor epmd running when starting 3.7.3 rabbitmq.