[Unit] | |
Description=RabbitMQ Messaging broker/server service | |
After=network.target | |
[Service] | |
Type=simple | |
User=root | |
Environment=HOME=/home/root | |
WorkingDirectory=/var/lib/rabbitmq | |
LogsDirectory=rabbitmq | |
ExecStartPre=/usr/bin/rabbitmq-server-setup | |
ExecStart=/usr/bin/rabbitmq-server | |
ExecStop=/usr/bin/rabbitmqctl stop | |
[Install] | |
WantedBy=multi-user.target |