# fixup the [Unit] entry to look like this:
[Unit]
Description=RabbitMQ Messaging Server
After=network.target epmd@0.0.0.0.socket
Wants=network.target epmd@0.0.0.0.socket
# change just the ExecStop under [Service] to use "shutdown" instead of "stop":
ExecStop=/usr/sbin/rabbitmqctl shutdown
# reload and reboot:
sudo systemctl stop rabbitmq-server.service
sudo systemctl daemon-reload
sudo systemctl restart rabbitmq-server.service
sudo shutdown -r now
# forgot to include the shutdown changes, so here's a full procedure to fix this in Bionic:
sudo nano /lib/systemd/ system/ rabbitmq- server. service
# fixup the [Unit] entry to look like this: RabbitMQ Messaging Server target epmd@0.0.0.0.socket target epmd@0.0.0.0.socket
[Unit]
Description=
After=network.
Wants=network.
# change just the ExecStop under [Service] to use "shutdown" instead of "stop": /usr/sbin/ rabbitmqctl shutdown
ExecStop=
# reload and reboot: server. service server. service
sudo systemctl stop rabbitmq-
sudo systemctl daemon-reload
sudo systemctl restart rabbitmq-
sudo shutdown -r now