Blame rabbitmq-server.service

c6cfba
[Unit]
c6cfba
Description=RabbitMQ broker
c6cfba
After=syslog.target network.target
c6cfba
c6cfba
[Service]
c6cfba
Type=simple
c6cfba
User=rabbitmq
c6cfba
Group=rabbitmq
c6cfba
Environment=RABBITMQ_PID_FILE=/var/run/rabbitmq/pid
c6cfba
WorkingDirectory=/var/lib/rabbitmq
a1fbd9
# Ensure cookie is created to avoid race
a1fbd9
# See https://bugzilla.redhat.com/show_bug.cgi?id=1059913
a1fbd9
ExecStartPre=-/bin/sh -c "/usr/lib/rabbitmq/bin/rabbitmqctl status > /dev/null 2>&1"
c6cfba
ExecStart=/usr/lib/rabbitmq/bin/rabbitmq-server
c6cfba
ExecStartPost=/usr/lib/rabbitmq/bin/rabbitmqctl wait /var/run/rabbitmq/pid
c6cfba
ExecStop=/usr/lib/rabbitmq/bin/rabbitmqctl stop
c6cfba
ExecStopPost=/usr/bin/rm /var/run/rabbitmq/pid
c6cfba
c6cfba
[Install]
c6cfba
WantedBy=multi-user.target