summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlexey Lebedeff <alebedev@mirantis.com>2016-03-11 17:42:15 +0300
committerAlexey Lebedeff <alebedev@mirantis.com>2016-03-11 19:10:19 +0300
commit2d6383bade61fea0b8652b72d25bb1a9f0d6133f (patch)
tree686b960de5dddf13fa8e31011e94e9a7115fd608 /docs
parent2ed6627c178b22851ad359f2243a4d474a2e46e5 (diff)
downloadrabbitmq-server-git-2d6383bade61fea0b8652b72d25bb1a9f0d6133f.tar.gz
Improve systemd integration
Hopefully this patch will fix all systemd-related problems: - Proxy shell process (which converts signals to `rabbitmqtl stop`) will no longer be started under systemd. There is no need in it, as systemd unit already contains instructions for graceful shutdown. - Ready notification for systemd will be sent with the help of `socat`, as `systemd-notify` is currently broken for non-root users. `socat` is the most lightweight way to do it (other options are using NIF or some external helper in Perl). - epmd will not be able to interfere by sending it's own ready notifications. - systemd journal will contain some additional messages about startup and shutdown sequence, just to be sure that everything is working correctly. Fixes #664
Diffstat (limited to 'docs')
-rw-r--r--docs/rabbitmq-server.service.example17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/rabbitmq-server.service.example b/docs/rabbitmq-server.service.example
new file mode 100644
index 0000000000..5a8f1cd73e
--- /dev/null
+++ b/docs/rabbitmq-server.service.example
@@ -0,0 +1,17 @@
+# systemd unit example
+[Unit]
+Description=RabbitMQ broker
+After=syslog.target network.target
+
+[Service]
+Type=notify
+User=rabbitmq
+Group=rabbitmq
+NotifyAccess=all
+TimeoutStartSec=3600
+WorkingDirectory=/var/lib/rabbitmq
+ExecStart=/usr/lib/rabbitmq/bin/rabbitmq-server
+ExecStop=/usr/lib/rabbitmq/bin/rabbitmqctl stop
+
+[Install]
+WantedBy=multi-user.target