Skip to content

Commit

Permalink
Fix #61689: RabbitMQ no longer starts after refresh (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
romandemidov authored Apr 3, 2023
1 parent 63ece86 commit 3542b2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 5 additions & 5 deletions bin/rabbitmq-env-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

umask 0066

RABBITMQ_MNESIA_BASE="$SNAP_DATA/var/lib/rabbitmq/mnesia"
RABBITMQ_LOG_BASE="$SNAP_DATA/var/log/rabbitmq"
RABBITMQ_GENERATED_CONFIG_DIR="$SNAP_DATA/var/lib/rabbitmq/config"
RABBITMQ_SCHEMA_DIR="$SNAP_DATA/var/lib/rabbitmq/schema"
RABBITMQ_CONF_ENV_FILE="$SNAP/rabbitmq-env.conf"
export RABBITMQ_MNESIA_BASE="$SNAP_DATA/var/lib/rabbitmq/mnesia"
export RABBITMQ_LOG_BASE="$SNAP_DATA/var/log/rabbitmq"
export RABBITMQ_GENERATED_CONFIG_DIR="$SNAP_DATA/var/lib/rabbitmq/config"
export RABBITMQ_SCHEMA_DIR="$SNAP_DATA/var/lib/rabbitmq/schema"
export RABBITMQ_CONF_ENV_FILE="$SNAP/rabbitmq-env.conf"

. `dirname $0`/rabbitmq-env
4 changes: 0 additions & 4 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ layout:
bind: $SNAP_DATA/etc/my.cnf.d
/usr/bin/python:
bind-file: $SNAP/usr/bin/python2.7
/var/lib/rabbitmq/mnesia:
bind: $SNAP_DATA/var/lib/rabbitmq/mnesia
/var/log/rabbitmq:
bind: $SNAP_DATA/var/log/rabbitmq

environment:
HOME: $SNAP_DATA
Expand Down

0 comments on commit 3542b2d

Please sign in to comment.