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
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