From eac6129fb396c4b0dec6ef252a0d0c9ba08b304c Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sat, 5 Oct 2019 15:13:00 +0200 Subject: [PATCH] Rework RabbitMQ --- lxc-services/rabbitmq/install.sh | 12 ------------ lxc-services/rabbitmq/install/etc/init.d/rabbitmq | 15 --------------- lxc-services/rabbitmq/lxcfile | 2 -- lxc-services/rabbitmq/uninstall.sh | 6 ------ 4 files changed, 35 deletions(-) delete mode 100755 lxc-services/rabbitmq/install.sh delete mode 100755 lxc-services/rabbitmq/install/etc/init.d/rabbitmq delete mode 100755 lxc-services/rabbitmq/uninstall.sh diff --git a/lxc-services/rabbitmq/install.sh b/lxc-services/rabbitmq/install.sh deleted file mode 100755 index a06ef80..0000000 --- a/lxc-services/rabbitmq/install.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -set -ev - -cd $(realpath $(dirname "${0}"))/install - -# Create RabbitMQ directory structure -mkdir -p /srv/rabbitmq/data -chown 5672:5672 /srv/rabbitmq/data - -# Install service -cp etc/init.d/rabbitmq /etc/init.d/rabbitmq -rc-update -u diff --git a/lxc-services/rabbitmq/install/etc/init.d/rabbitmq b/lxc-services/rabbitmq/install/etc/init.d/rabbitmq deleted file mode 100755 index 3743466..0000000 --- a/lxc-services/rabbitmq/install/etc/init.d/rabbitmq +++ /dev/null @@ -1,15 +0,0 @@ -#!/sbin/openrc-run - -description="RabbitMQ container" - -start() { - lxc-start rabbitmq -} - -start_post() { - timeout -t 60 sh -c 'until grep -q "Server startup complete" /var/lib/lxc/rabbitmq/delta0/var/log/rabbitmq/rabbit@rabbitmq.log 2>/dev/null; do usleep 50000; done' -} - -stop() { - lxc-stop rabbitmq -} diff --git a/lxc-services/rabbitmq/lxcfile b/lxc-services/rabbitmq/lxcfile index e508608..187e594 100644 --- a/lxc-services/rabbitmq/lxcfile +++ b/lxc-services/rabbitmq/lxcfile @@ -11,8 +11,6 @@ RUN EOF apk --no-cache add rabbitmq-server@vm EOF -MOUNT DIR /srv/rabbitmq/data var/lib/rabbitmq/mnesia - USER 5672 5672 ENV HOME /usr/lib/rabbitmq CMD rabbitmq-server diff --git a/lxc-services/rabbitmq/uninstall.sh b/lxc-services/rabbitmq/uninstall.sh deleted file mode 100755 index 9b3328b..0000000 --- a/lxc-services/rabbitmq/uninstall.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -set -ev - -# Remove service -rm -f /etc/init.d/rabbitmq -rc-update -u