diff options
| author | Luke Bakken <lbakken@pivotal.io> | 2017-09-19 14:14:12 -0700 |
|---|---|---|
| committer | Luke Bakken <lbakken@pivotal.io> | 2017-09-19 14:14:32 -0700 |
| commit | 4e87dbefa06626f91d74801873a5f9a5f5b797c5 (patch) | |
| tree | e32950fe3e0707b6d4db729ae7ffa61200623f85 /docs | |
| parent | 833a9da2567867775833e19973c31f732a459464 (diff) | |
| download | rabbitmq-server-git-4e87dbefa06626f91d74801873a5f9a5f5b797c5.tar.gz | |
Add optional Restart and RestartSec configuration
Fixes #1359
This gives guidances for those users who wish to automatically restart RabbitMQ in the event of a failure. Tested by using the `Restart=on-failure` setting, then running `rabbitmqctl eval "erlang:halt(abort)."`
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/rabbitmq-server.service.example | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/rabbitmq-server.service.example b/docs/rabbitmq-server.service.example index 1aa6549b64..f8a7ab1b48 100644 --- a/docs/rabbitmq-server.service.example +++ b/docs/rabbitmq-server.service.example @@ -10,6 +10,14 @@ User=rabbitmq Group=rabbitmq NotifyAccess=all TimeoutStartSec=3600 +# Note: +# You *may* wish to add the following to automatically restart RabbitMQ +# in the event of a failure. This is not recommended as a replacement +# for service monitoring. Please see +# http://www.rabbitmq.com/monitoring.html +# +# Restart=on-failure # https://www.freedesktop.org/software/systemd/man/systemd.service.html#Restart= +# RestartSec=10 # https://www.freedesktop.org/software/systemd/man/systemd.service.html#RestartSec= WorkingDirectory=/var/lib/rabbitmq ExecStart=/usr/lib/rabbitmq/bin/rabbitmq-server ExecStop=/usr/lib/rabbitmq/bin/rabbitmqctl stop |
