2013-04-04 11:48:47 +02:00
|
|
|
[Unit]
|
|
|
|
Description=RabbitMQ broker
|
2014-04-10 22:18:43 +02:00
|
|
|
After=epmd.socket syslog.target network.target
|
|
|
|
Requires=epmd.socket
|
2013-04-04 11:48:47 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=rabbitmq
|
|
|
|
Group=rabbitmq
|
|
|
|
Environment=RABBITMQ_PID_FILE=/var/run/rabbitmq/pid
|
|
|
|
WorkingDirectory=/var/lib/rabbitmq
|
|
|
|
ExecStart=/usr/sbin/rabbitmq-server
|
|
|
|
ExecStartPost=/usr/sbin/rabbitmqctl wait /var/run/rabbitmq/pid
|
|
|
|
ExecStop=/usr/sbin/rabbitmqctl stop
|
|
|
|
ExecStopPost=/usr/bin/rm /var/run/rabbitmq/pid
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|