Leave symlinks for RabbitMQ state paths

As an operator, we instinctively expect e.g. logs to be
in /var/log while debugging. Placing a symlink allows
us to make debugging easier.

Change-Id: I86cfea07230ee3554f792b0b00ab366a60779d64
This commit is contained in:
Kiall Mac Innes 2014-08-26 18:28:09 +01:00
parent a145261866
commit 24fdfe9369
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,10 @@ set -eux
install-packages rabbitmq-server
# Ensure we leave symlinks in place for RabbitMQ state paths
register-state-path --leave-symlink /var/lib/rabbitmq
register-state-path --leave-symlink /var/log/rabbitmq
# Note(jang): the rabbitmq-server service is installed, but not started, since
# the first run of os-collect-config is required to configure it properly.