rabbitmq-server/rabbitmq-server.service
Ralf Haferkamp 150d13883c Accepting request 162573 from home:dirkmueller:branches:network:messaging:amqp
------------------------------------------------------------------
- Change init script to properly daemonize (patch by jdsn) (bnc#807540)

- Added systemd .service file

OBS-URL: https://build.opensuse.org/request/show/162573
OBS-URL: https://build.opensuse.org/package/show/network:messaging:amqp/rabbitmq-server?expand=0&rev=16
2013-04-04 09:48:47 +00:00

18 lines
429 B
Desktop File

[Unit]
Description=RabbitMQ broker
After=syslog.target network.target
[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