summaryrefslogtreecommitdiff
path: root/openstack/usr/share/openstack/openstack-rabbitmq-setup
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2014-11-11 18:07:35 +0000
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-01-22 12:46:22 +0000
commitdbd97b9918a116e23884235fd98eaa09ed83645a (patch)
tree4496008bc7c55a280d92316e1c8be9003c0cd023 /openstack/usr/share/openstack/openstack-rabbitmq-setup
parentf6e542ea5ff74a82124c7750c72166503536f459 (diff)
downloaddefinitions-dbd97b9918a116e23884235fd98eaa09ed83645a.tar.gz
TO_FIX: Attempt to fix rabbitmq-server service
Changes done: - Remove the call to rabbitmq-server service inside of rabbitmq-setup - Rewrite the rabbitmq-server service because the current rabbitmq-server source does not support notify type of systemd unit, the current approach does not work because the server does not run properly the first attempt (it does if it is manually rebooted). Fedora/devstack guys have patches to add systemd notify support for this, see: [1] https://peter.fedorapeople.org/rabbitmq-server-0001-Add-systemd-notify-support.patch [2] http://pkgs.fedoraproject.org/cgit/rabbitmq-server.git/tree/rabbitmq-server-systemd-notify-support.patch [3] http://pkgs.fedoraproject.org/cgit/rabbitmq-server.git/commit/?id=eea61e0 but this implies to add erlang-sd_notify: [4] http://pkgs.fedoraproject.org/cgit/erlang-sd_notify.git/tree/erlang-sd_notify.spec and [5] https://apps.fedoraproject.org/packages/erlang-sd_notify/sources/spec and [6] possibly the erlang builder "rebar": https://github.com/rebar/rebar - Link the rabbitmq-server service to multi.target.wants Other interesting links to configure rabbit: [7] https://www.rabbitmq.com/configure.html [8] https://www.rabbitmq.com/configure.html#configuration-file
Diffstat (limited to 'openstack/usr/share/openstack/openstack-rabbitmq-setup')
-rw-r--r--openstack/usr/share/openstack/openstack-rabbitmq-setup5
1 files changed, 1 insertions, 4 deletions
diff --git a/openstack/usr/share/openstack/openstack-rabbitmq-setup b/openstack/usr/share/openstack/openstack-rabbitmq-setup
index fb83c039..af332841 100644
--- a/openstack/usr/share/openstack/openstack-rabbitmq-setup
+++ b/openstack/usr/share/openstack/openstack-rabbitmq-setup
@@ -38,9 +38,6 @@ if [ ! -d /var/log/rabbitmq ]; then
chmod 755 /var/log/rabbitmq
fi
-systemctl start openstack-rabbitmq-server
-
-ln -s "/etc/systemd/system/openstack-rabbitmq-server.service" \
- "/etc/systemd/system/multi-user.target.wants/openstack-rabbitmq-server.service"
+chown -R rabbitmq:rabbitmq /var/lib/rabbitmq
exit 0