summaryrefslogtreecommitdiffstats
path: root/mcp/patches/salt-formula-rabbitmq/0001-Stop-epmd.socket-before-relaunching-rabbit-service.patch
blob: f7b85f5ab4deba6112de55430bcf73aefaa78585 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
: Copyright (c) 2019 Mirantis Inc., Enea AB and others.
:
: All rights reserved. This program and the accompanying materials
: are made available under the terms of the Apache License, Version 2.0
: which accompanies this distribution, and is available at
: http://www.apache.org/licenses/LICENSE-2.0
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Date: Fri, 18 Oct 2019 17:07:13 +0200
Subject: [PATCH] Stop epmd.socket before relaunching rabbit service

Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
---
 rabbitmq/server/service.sls | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/rabbitmq/server/service.sls b/rabbitmq/server/service.sls
index 3e95a30..05f2eb1 100644
--- a/rabbitmq/server/service.sls
+++ b/rabbitmq/server/service.sls
@@ -58,6 +58,12 @@ rabbitmq_limits_systemd:
   - require:
     - pkg: rabbitmq_server

+rabbitmq_epmd_socket:
+  service.dead:
+  - name: epmd.socket
+  - require:
+    - pkg: rabbitmq_server
+
 {%- endif %}

 {%- if server.secret_key is defined and not grains.get('noservices', False) %}