From 7d5b4466330a0f116ccfe940357c45ca76110d99 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Apr 06 2016 14:15:53 +0000 Subject: Fix start up failure Signed-off-by: Peter Lemenkov --- diff --git a/rabbitmq-server.spec b/rabbitmq-server.spec index 8bc9731..27f2215 100644 --- a/rabbitmq-server.spec +++ b/rabbitmq-server.spec @@ -5,7 +5,7 @@ Name: rabbitmq-server Version: 3.6.1 -Release: 1%{?dist} +Release: 2%{?dist} License: MPLv1.1 Group: Development/Libraries Source: http://www.rabbitmq.com/releases/rabbitmq-server/v%{version}/%{name}-%{version}.tar.xz @@ -89,6 +89,13 @@ install -p -D -m 0644 %{S:6} %{buildroot}%{_unitdir}/%{name}.service install -p -D -m 0755 %{S:2} %{buildroot}%{_sbindir}/rabbitmqctl install -p -D -m 0755 %{S:2} %{buildroot}%{_sbindir}/rabbitmq-server install -p -D -m 0755 %{S:2} %{buildroot}%{_sbindir}/rabbitmq-plugins + +# Make necessary symlinks +mkdir -p %{buildroot}%{_rabbit_libdir}/bin +for app in rabbitmq-defaults rabbitmq-env rabbitmq-plugins rabbitmq-server rabbitmqctl ; do + ln -s %{_rabbit_libdir}/lib/rabbitmq_server-%{version}/sbin/${app} %{buildroot}%{_rabbit_libdir}/bin/${app} +done + install -p -D -m 0755 %{S:4} %{buildroot}%{_exec_prefix}/lib/ocf/resource.d/rabbitmq/rabbitmq-server install -p -D -m 0644 %{S:3} %{buildroot}%{_sysconfdir}/logrotate.d/rabbitmq-server @@ -168,6 +175,9 @@ done %changelog +* Wed Apr 6 2016 Peter Lemenkov - 3.6.1-2 +- Fix start up failure + * Thu Mar 24 2016 Peter Lemenkov - 3.6.1-1 - Ver. 3.6.1